Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/solidity/typed/integer.rb
Instance Method Summary collapse
- #e18 ⇒ Object
-
#e24 ⇒ Object
note: add e6 (zeros) after conversion to int 21e24.to_i = 20999999999999999110807552 !!!! 21.0.e24 = 21000000000000000000000000.
-
#ether ⇒ Object
(also: #eth)
use alias_method :ether, :e18 - why? why not?.
Instance Method Details
#e18 ⇒ Object
46 |
# File 'lib/solidity/typed/integer.rb', line 46 def e18() (self *10**18).to_i; end |
#e24 ⇒ Object
note: add e6 (zeros) after conversion to int 21e24.to_i = 20999999999999999110807552 !!!! 21.0.e24 = 21000000000000000000000000
51 |
# File 'lib/solidity/typed/integer.rb', line 51 def e24() (self *10**18).to_i.e6; end |
#ether ⇒ Object Also known as: eth
use alias_method :ether, :e18 - why? why not?
54 |
# File 'lib/solidity/typed/integer.rb', line 54 def ether() (self *10**18).to_i; end |