apoc.number.exact.sub

Details

Syntax

apoc.number.exact.sub(stringA, stringB)

Description

Returns the result of subtracting a given large number from another given large number (using Java BigDecimal).

Arguments

Name

Type

Description

stringA

STRING

A string representation of a number to have a second number subtracted from.

stringB

STRING

A string representation of a number to subtract from the first number.

Returns

STRING

Usage Examples

RETURN apoc.number.exact.sub('1238126387','1213669989') as output;
Results
output

"24456398"