Python's floor, ceil, fabs, and trunc Functions
This is a scratchpad post look at the different python math functions
Code
=
=
=
=
=
Results
original floor ceil fabs trunc
23 23 23 23.0 23
37.1 37 38 37.1 37
48.9 48 49 48.9 48
-7 -7 -7 7.0 -7
-12.3 -13 -12 12.3 -12
-26.9 -27 -26 26.9 -26