apoc.number.exact.add

Function

apoc.number.exact.add(stringA String, stringB String) - returns the sum of adding the two given large numbers (using Java BigDecimal).

Signature

apoc.number.exact.add(stringA :: STRING?, stringB :: STRING?) :: (STRING?)

Input parameters

Name Type Default

stringA

STRING?

null

stringB

STRING?

null

Usage Examples

RETURN apoc.number.exact.add('1213669989','1238126387') as output;
Table 1. Results
output

"2451796376"

RETURN apoc.number.exact.add(null,'1238126387') as output;
Table 2. Results
output

NULL

RETURN apoc.number.exact.add('1E6','1E6') as value;
Table 3. Results
Value

"2000000"