You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/double.ts
+14-11
Original file line number
Diff line number
Diff line change
@@ -38,29 +38,32 @@ export class Double extends BSONValue {
38
38
*
39
39
* This method will throw a BSONError on any string input that is not representable as a IEEE-754 64-bit double.
40
40
* Notably, this method will also throw on the following string formats:
41
-
* - Strings in non-decimal formats (exponent notation, binary, hex, or octal digits)
41
+
* - Strings in non-decimal and non-exponential formats (binary, hex, or octal digits)
42
42
* - Strings with characters other than numeric, floating point, or leading sign characters (Note: 'Infinity', '-Infinity', and 'NaN' input strings are still allowed)
43
43
* - Strings with leading and/or trailing whitespace
44
44
*
45
45
* Strings with leading zeros, however, are also allowed
46
46
*
47
-
* @param value - the string we want to represent as an double.
47
+
* @param value - the string we want to represent as a double.
0 commit comments