I read that there is no support for floating point number in solidity, So how we can handle it. If I want to store 12.23 or something like that.
-
Answered similar question recently - ethereum.stackexchange.com/questions/70898/…– KNKCommented May 24, 2019 at 18:31
-
Store 1223 and 100, and use them wisely (i.e., always postpone the part where you divide by 100 as much as possible, without changing the actual expression being calculated).– goodvibrationCommented May 24, 2019 at 18:33
Add a comment
|