commit
396b5619fc
6 changed files with 40 additions and 9 deletions
22
tests/system/tfloatToString.nim
Normal file
22
tests/system/tfloatToString.nim
Normal file
|
|
@ -0,0 +1,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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue