Newtonsoft.Json.Bson icon indicating copy to clipboard operation
Newtonsoft.Json.Bson copied to clipboard

Support for decimal

Open jmajoor opened this issue 7 years ago • 0 comments

The BSON specification at (http://bsonspec.org/spec.html) has a datatype for decimal. The current implementation does not properly support this. The BsonWriter will write a decimal value as a BsonType.Number which is a double and therefore my decimal precision is lost.

I tried subclassing the BsonWriter, but it doesn't look like I can extend the classes to add this support. Are there plans to support the decimal datatype? Any other way I can use bson and work with decimals?

jmajoor avatar Aug 31 '17 03:08 jmajoor