-

- (minuend subtrahend -- difference)

Inputs

Outputs

This builtin accepts whole and real numbers. Both inputs are dereferenced and must be non-NIL. The operands must have the same schema.

Behavior

Example

{} () {} [
  unknownReal: 2.5r32 dynamic;

  "-- int32 --" printCompilerMessage
  10 3 - printStack _:;
  7 0 - printStack _:;

  "-- zero with unknown real32 --" printCompilerMessage
  0.0r32 unknownReal - printStack _:;

  "-- real32 --" printCompilerMessage
  0.0r32 2.5r32 - printStack _:;
  5.0r32 2.5r32 - printStack _:;
] "main" exportFunction

Expected Output During Compilation

-- int32 --
7
7
-- zero with unknown real32 --
Real32
-- real32 --
-2.5r32
2.5r32

See also