Static
fromAttempt to create an double type from string.
This method will throw a BSONError on any string input that is not representable as a IEEE-754 64-bit double. Notably, this method will also throw on the following string formats:
Strings with leading zeros, however, are also allowed
the string we want to represent as a double.
A class representation of the BSON Double type.