floor

calculate the largest integer not greater than given value


Parameters

floor value :integer :floating :rational

Returns

  • :integer

Examples

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

Related