Solidity doesn't have float or double variables. What solutions are there to handle the cases where we really have to represent numbers as percentages or fractions?
Solidity – Available Fixed and Floating Point Math Libraries
floating-pointsolidity
Best Answer
Disclaimer: I am the author of PRBMath.
Fixed-Point
Floating-Point
Addenda