floor

calculate the largest integer not greater than given value


Parameters

floor value :integer :floating

Returns

  • :integer

Examples

copy
print floor 2.1 ; 2 print floor 2.9 ; 2 print floor neg 3.5 ; -4 print floor 4 ; 4

Related