ceil

calculate the smallest integer not smaller than given value


Parameters

ceil value :integer :floating :rational

Returns

  • :integer

Examples

copy
print ceil 2.1 ; 3 print ceil 2.9 ; 3 print ceil neg 3.5 ; -3 print ceil 4 ; 4 print ceil to :rational @[neg 7 2] ; -3

Related