Math functions on Decimal128

What changes in Math functions on Decimal128 compared with MongoDB and what your application has to do.

This difference is of the Different kind.

What MongoDB does

In some cases, the last digit of $exp, $ln, $log10, $pow or the trigonometric functions is not correctly rounded.

What TeselaDB does

Those functions give 34 correctly rounded digits, so in those cases the last digit differs.

What your application has to do

Nothing, unless you compare results digit by digit with MongoDB.

See also