hey all. anyone know how to approach determining a value on the smart contract side where dapp passes floating point value? Basically the value on the smart contract side will be used to determine the percentage amount of air drop based on how much tokens are available for distribution.

Jul 18, 2021, 11:58 PM
the easiest way is obviously to round to the nearest integer
Jul 19, 2021, 12:28 AM
thanks. I was wondering if there was other elaborate ways to do it.
Jul 19, 2021, 12:34 AM

© 2024 Draquery.com All rights reserved.