ceil

calculate the smallest integer not smaller than given value


Parameters

ceil value :integer :floating

Returns

  • :integer

Examples

copy
print ceil 2.1 ; 3 print ceil 2.9 ; 3 print ceil neg 3.5 ; -3 print ceil 4 ; 4

Related