SSUB function

Syntax

SSUB (string.number.1, string.number.2)

Description

Use the SSUB function to subtract string.number.2 from string.number.1 and return the result as a string number. You can use this function in any expression where a string or string number is valid, but not necessarily where a standard number is valid, because string numbers can exceed the range of numbers that standard arithmetic operators can handle.

Either string number can be any valid number or string number.

If either string number contains nonnumeric data, an error message is generated, and 0 replaces the nonnumeric data. If either string number evaluates to the null value, null is returned.

Example

X = "123456"
Y = "225"
Z = SSUB (X,Y)
PRINT Z

This is the program output:

123231