mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 22:32:19 +03:00
cc31076849
Making sure the test can distinguish between truncating & rounding.
32 lines
676 B
Plaintext
32 lines
676 B
Plaintext
"Int"
|
|
the Int (cast "12.0")
|
|
the Int (cast "12.3")
|
|
the Int (cast "12.5")
|
|
the Int (cast "12.7")
|
|
"Negative Int"
|
|
the Int (cast "-12.0")
|
|
the Int (cast "-12.3")
|
|
the Int (cast "-12.5")
|
|
the Int (cast "-12.7")
|
|
"Integer"
|
|
the Integer (cast "12.0")
|
|
the Integer (cast "12.3")
|
|
the Integer (cast "12.5")
|
|
the Integer (cast "12.7")
|
|
"Negative Integer"
|
|
the Integer (cast "-12.0")
|
|
the Integer (cast "-12.3")
|
|
the Integer (cast "-12.5")
|
|
the Integer (cast "-12.7")
|
|
"Double"
|
|
the Double (cast "12.0")
|
|
the Double (cast "12.3")
|
|
the Double (cast "12.5")
|
|
the Double (cast "12.7")
|
|
"Negative Double"
|
|
the Double (cast "-12.0")
|
|
the Double (cast "-12.3")
|
|
the Double (cast "-12.5")
|
|
the Double (cast "-12.7")
|
|
:q
|