We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a094f8e commit 1431d36Copy full SHA for 1431d36
extra/decimal_printer.py
@@ -18,12 +18,22 @@ def decimal32_summary(valobj, internal_dict):
18
19
if bits & 2113929216 == 2113929216:
20
result = "SNAN"
21
+ isnan = True
22
elif bits & 2080374784 == 2080374784:
23
result = "QNAN"
- elif bits & 2080374784 == 2080374784:
24
- result = "INF"
25
+ elif bits & 2080374784 == 2013265920:
26
+ if sign:
27
+ result = "-INF"
28
+ else:
29
+ result = "INF"
30
else:
31
raise ValueError("Unknown Finite Value")
32
+
33
+ if isnan:
34
+ payload = bits & 8388607
35
+ if payload > 0:
36
+ result += str(payload)
37
38
# See decimal32_t::to_components()
39
d32_comb_11_mask = 1610612736
0 commit comments