Retro Rocket OS
Loading...
Searching...
No Matches
BIGSUB$ Function
BIGSUB$(string-expression, string-expression)

Subtracts the second arbitrary precision integer (as a decimal string) from the first, returning the result as a string.


Examples

PRINT BIGSUB$("100000000000000000000", "1")

Produces "99999999999999999999".

PRINT BIGSUB$("50", "75")

Produces "-25".

PRINT BIGSUB$("-10", "-5")

Produces "-5".


Notes

  • Inputs must be valid base-10 integer strings.
  • Supports values far beyond 64-bit limits.
  • Negative numbers are supported.
  • Result is returned as a decimal string.
  • Leading zeros in input are ignored.

See also: BIGADD$ · BIGMUL$ · BIGDIV$ · BIGMOD$ · BIGCMP