import math math.floor( x ) #### use POSIX; floor($x) #### f() and do { ... };