apoc.number.exact.add

Details

Syntax

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

Description

Returns the result of adding the two given large numbers (using Java BigDecimal).

Arguments

Name

Type

Description

stringA

STRING

A string representation of a number to be added to the second number.

stringB

STRING

A string representation of a number to be added to the first number.

Returns

STRING

Usage Examples

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

"2451796376"

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

NULL

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

"2000000"