apoc.number.exact.div

Function

apoc.number.exact.div(stringA String, stringB String, precision Integer, roundingMode String) - returns the sum of dividing a given large number with another given large number (using Java BigDecimal).

Signature

apoc.number.exact.div(stringA :: STRING?, stringB :: STRING?, precision = 0 :: INTEGER?, roundingMode = HALF_UP :: STRING?) :: (STRING?)

Input parameters

Name Type Default

stringA

STRING?

null

stringB

STRING?

null

precision

INTEGER?

0

roundingMode

STRING?

HALF_UP

Usage Examples

RETURN apoc.number.exact.div('550058444','662557', 18, 'HALF_DOWN') as output;
Table 1. Results
output

"830.205467605051339"