Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
12
Task/Literals-Floating-point/Nim/literals-floating-point.nim
Normal file
12
Task/Literals-Floating-point/Nim/literals-floating-point.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
var x: float
|
||||
x = 2.3
|
||||
x = 2.0
|
||||
x = 0.3
|
||||
x = 123_456_789.000_000_1
|
||||
x = 2e10
|
||||
x = 2.5e10
|
||||
x = 2.523_123E10
|
||||
x = 5.2e-10
|
||||
|
||||
var y = 2'f32 # Automatically a float32
|
||||
var z = 2'f64 # Automatically a float64
|
||||
Loading…
Add table
Add a link
Reference in a new issue