I am querying data from a MongoDB database (MongoDB Driver 3.3). Some values are stored in Decimal128
format. The problem is that the following object is returned instead of a number:
value: Decimal128 {
_bsontype: 'Decimal128',
bytes: <Buffer 80 7c 45 c7 c6 02 00 00 00 00 00 00 00 00 3e 30>
}
I have found no function to convert this object into a human readable number (native JavaScript 64-Bit number). Does someone know how to achieve this?