floor

floor (value -- floorValue)

Inputs

Outputs

floor accepts Real32 and Real64 values. The input is dereferenced and must be non-NIL.

Behavior

Example

{} () {} [
  "-- real32 --" printCompilerMessage
  2.9r32 floor printStack _:;
  -2.1r32 floor printStack _:;
  -2.0r32 floor printStack _:;

  "-- real64 --" printCompilerMessage
  2.9 floor printStack _:;
  -2.1 floor printStack _:;
  -2.0 floor printStack _:;
] "main" exportFunction

Expected Output During Compilation

-- real32 --
2.0r32
-3.0r32
-2.0r32
-- real64 --
2.0
-3.0
-2.0

See also