ForNext
Only Do What Only You Can Do
035. arithmetic truncation
VBScript
JScript
Perl
PHP
Python
Ruby
PowerShell
Scala
3.14.round ?? 3.14.floor returns Double 3.14.ceil returns Double
F#
OCaml
?? truncate 3.14 floor 3.14 returns float ceil 3.14 returns float F# has round
Haskell
round 3.14 truncate 3.14 floor 3.14 ceiling 3.14