-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathdouble.json
More file actions
87 lines (87 loc) · 3.44 KB
/
double.json
File metadata and controls
87 lines (87 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"description": "Double type",
"bson_type": "0x01",
"test_key": "d",
"valid": [
{
"description": "+1.0",
"canonical_bson": "10000000016400000000000000F03F00",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"1.0\"}}",
"relaxed_extjson": "{\"d\" : 1.0}"
},
{
"description": "-1.0",
"canonical_bson": "10000000016400000000000000F0BF00",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-1.0\"}}",
"relaxed_extjson": "{\"d\" : -1.0}"
},
{
"description": "+1.0001220703125",
"canonical_bson": "10000000016400000000008000F03F00",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"1.0001220703125\"}}",
"relaxed_extjson": "{\"d\" : 1.0001220703125}"
},
{
"description": "-1.0001220703125",
"canonical_bson": "10000000016400000000008000F0BF00",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-1.0001220703125\"}}",
"relaxed_extjson": "{\"d\" : -1.0001220703125}"
},
{
"description": "1.2345678921232E+18",
"canonical_bson": "100000000164002a1bf5f41022b14300",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"1.2345678921232E+18\"}}",
"relaxed_extjson": "{\"d\" : 1.2345678921232E+18}"
},
{
"description": "-1.2345678921232E+18",
"canonical_bson": "100000000164002a1bf5f41022b1c300",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-1.2345678921232E+18\"}}",
"relaxed_extjson": "{\"d\" : -1.2345678921232E+18}"
},
{
"description": "0.0",
"canonical_bson": "10000000016400000000000000000000",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"0.0\"}}",
"relaxed_extjson": "{\"d\" : 0.0}"
},
{
"description": "-0.0",
"canonical_bson": "10000000016400000000000000008000",
"canonical_extjson": "{\"d\" : {\"$numberDouble\": \"-0.0\"}}",
"relaxed_extjson": "{\"d\" : -0.0}"
},
{
"description": "NaN",
"canonical_bson": "10000000016400000000000000F87F00",
"canonical_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}",
"relaxed_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}",
"lossy": true
},
{
"description": "NaN with payload",
"canonical_bson": "10000000016400120000000000F87F00",
"canonical_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}",
"relaxed_extjson": "{\"d\": {\"$numberDouble\": \"NaN\"}}",
"lossy": true
},
{
"description": "Inf",
"canonical_bson": "10000000016400000000000000F07F00",
"canonical_extjson": "{\"d\": {\"$numberDouble\": \"Infinity\"}}",
"relaxed_extjson": "{\"d\": {\"$numberDouble\": \"Infinity\"}}"
},
{
"description": "-Inf",
"canonical_bson": "10000000016400000000000000F0FF00",
"canonical_extjson": "{\"d\": {\"$numberDouble\": \"-Infinity\"}}",
"relaxed_extjson": "{\"d\": {\"$numberDouble\": \"-Infinity\"}}"
}
],
"decodeErrors": [
{
"description": "double truncated",
"bson": "0B0000000164000000F03F00"
}
]
}