apoc.number.exact.mul

Function

apoc.number.exact.mul(stringA String, stringB String, precision Integer, roundingMode String) - returns the sum of multiplying two given large numbers (using Java BigDecimal).

Signature

apoc.number.exact.mul(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.mul('550058444','662557', 15, 'HALF_DOWN') as output;
Table 1. Results
output

"364445072481308"