Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/solidity/typed/integer.rb
Instance Method Summary collapse
-
#e10 ⇒ Object
10_000_000_000.
-
#e11 ⇒ Object
100_000_000_000.
-
#e12 ⇒ Object
1_000_000_000_000.
-
#e13 ⇒ Object
10_000_000_000_000.
-
#e14 ⇒ Object
100_000_000_000_000.
-
#e15 ⇒ Object
1_000_000_000_000_000.
-
#e16 ⇒ Object
10_000_000_000_000_000.
-
#e17 ⇒ Object
100_000_000_000_000_000.
-
#e18 ⇒ Object
1_000_000_000_000_000_000.
- #e19 ⇒ Object
-
#e2 ⇒ Object
100.
- #e20 ⇒ Object
- #e21 ⇒ Object
- #e22 ⇒ Object
- #e23 ⇒ Object
-
#e24 ⇒ Object
1_000_000_000_000_000_000_000_000.
-
#e3 ⇒ Object
1000.
-
#e4 ⇒ Object
10_000.
-
#e5 ⇒ Object
100_000.
-
#e6 ⇒ Object
1_000_000.
-
#e7 ⇒ Object
10_000_000.
-
#e8 ⇒ Object
100_000_000.
-
#e9 ⇒ Object
1_000_000_000.
-
#ether ⇒ Object
(also: #eth)
Ethereum money units add more - why? why not? use alias_method :ether, :e18 - why? why not?.
Instance Method Details
#e10 ⇒ Object
10_000_000_000
20 |
# File 'lib/solidity/typed/integer.rb', line 20 def e10() self * 10**10; end |
#e11 ⇒ Object
100_000_000_000
21 |
# File 'lib/solidity/typed/integer.rb', line 21 def e11() self * 10**11; end |
#e12 ⇒ Object
1_000_000_000_000
22 |
# File 'lib/solidity/typed/integer.rb', line 22 def e12() self * 10**12; end |
#e13 ⇒ Object
10_000_000_000_000
23 |
# File 'lib/solidity/typed/integer.rb', line 23 def e13() self * 10**13; end |
#e14 ⇒ Object
100_000_000_000_000
24 |
# File 'lib/solidity/typed/integer.rb', line 24 def e14() self * 10**14; end |
#e15 ⇒ Object
1_000_000_000_000_000
25 |
# File 'lib/solidity/typed/integer.rb', line 25 def e15() self * 10**15; end |
#e16 ⇒ Object
10_000_000_000_000_000
26 |
# File 'lib/solidity/typed/integer.rb', line 26 def e16() self * 10**16; end |
#e17 ⇒ Object
100_000_000_000_000_000
27 |
# File 'lib/solidity/typed/integer.rb', line 27 def e17() self * 10**17; end |
#e18 ⇒ Object
1_000_000_000_000_000_000
28 |
# File 'lib/solidity/typed/integer.rb', line 28 def e18() self * 10**18; end |
#e19 ⇒ Object
29 |
# File 'lib/solidity/typed/integer.rb', line 29 def e19() self * 10**19; end |
#e2 ⇒ Object
100
12 |
# File 'lib/solidity/typed/integer.rb', line 12 def e2() self * 10**2; end |
#e20 ⇒ Object
30 |
# File 'lib/solidity/typed/integer.rb', line 30 def e20() self * 10**20; end |
#e21 ⇒ Object
31 |
# File 'lib/solidity/typed/integer.rb', line 31 def e21() self * 10**21; end |
#e22 ⇒ Object
32 |
# File 'lib/solidity/typed/integer.rb', line 32 def e22() self * 10**22; end |
#e23 ⇒ Object
33 |
# File 'lib/solidity/typed/integer.rb', line 33 def e23() self * 10**23; end |
#e24 ⇒ Object
1_000_000_000_000_000_000_000_000
34 |
# File 'lib/solidity/typed/integer.rb', line 34 def e24() self * 10**24; end |
#e3 ⇒ Object
1000
13 |
# File 'lib/solidity/typed/integer.rb', line 13 def e3() self * 10**3; end |
#e4 ⇒ Object
10_000
14 |
# File 'lib/solidity/typed/integer.rb', line 14 def e4() self * 10**4; end |
#e5 ⇒ Object
100_000
15 |
# File 'lib/solidity/typed/integer.rb', line 15 def e5() self * 10**5; end |
#e6 ⇒ Object
1_000_000
16 |
# File 'lib/solidity/typed/integer.rb', line 16 def e6() self * 10**6; end |
#e7 ⇒ Object
10_000_000
17 |
# File 'lib/solidity/typed/integer.rb', line 17 def e7() self * 10**7; end |
#e8 ⇒ Object
100_000_000
18 |
# File 'lib/solidity/typed/integer.rb', line 18 def e8() self * 10**8; end |
#e9 ⇒ Object
1_000_000_000
19 |
# File 'lib/solidity/typed/integer.rb', line 19 def e9() self * 10**9; end |
#ether ⇒ Object Also known as: eth
Ethereum money units
add more - why? why not?
use alias_method :ether, :e18 - why? why not?
40 |
# File 'lib/solidity/typed/integer.rb', line 40 def ether() self * 10**18; end |