summary refs log tree commit diff stats
path: root/tests/system/tfloatToString.nim
blob: bb45a91d707b15e302b0eb35e97dbc03ba24a143 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
discard """
  output:'''2.3242
2.982
123912.1
123912.1823
5.0
1e+100
inf
-inf
nan
'''
"""

echo($(2.3242))
echo($(2.982))
echo($(123912.1))
echo($(123912.1823))
echo($(5.0))
echo($(1e100))
echo($(1e1000000))
echo($(-1e1000000))
echo($(0.0/0.0))