Download contract design - How can I represent decimal values in Solidity ... book pdf free download link or read online here in PDF. Read online contract design - How can I represent decimal values in Solidity ... book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
Math in Solidity is done entirely using fixed-point. For ether, there's no need to use fractional values - all values are represented in wei, which is the smallest unit of ether. If you want to send 0.5 ether, you can instead specify your literal as "500 finney", which will be converted into wei: msg.sender.send(500 finney); or:
Read : contract design - How can I represent decimal values in Solidity ... pdf book online Select one of servers for direct link: |
---|