Timeline for Transaction succeed even if require() is false
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 14, 2017 at 13:52 | comment | added | pabloruiz55 | No, there's not either. Numbers will get rounded down. | |
Dec 14, 2017 at 11:27 | comment | added | FosAvance | I get it, thanks. But what about division? There has to be floating point there | |
Dec 14, 2017 at 9:50 | comment | added | Jesbus |
@FosAvance Usually in Solidity programming, integer math is all you need. Neither tokens nor Ether itself ever use floating points to store amounts. It's all integers. The . you see in an amount is just a visual representation to make huge integers more readable.
|
|
Dec 14, 2017 at 7:37 | comment | added | FosAvance | It didn't fail in Remix, transaction didn't go through which means the logic worked. If it doesn't have floating numbers, how should I handle that? | |
Dec 14, 2017 at 7:36 | comment | added | FosAvance | I added the code | |
Dec 14, 2017 at 7:33 | history | answered | Ismael♦ | CC BY-SA 3.0 |