Commit 00b14db
committed
feat(determin): add Dfp::from_signed, DFP_CANONICAL_NAN, DQA CANONICAL_ZERO
Add missing API surface identified in DFP (RFC-0104) and DQA (RFC-0105)
code reviews:
- Dfp::from_signed(mantissa, exponent): creates DFP from signed mantissa,
extracting sign automatically (RFC-0104 D2)
- DFP_CANONICAL_NAN constant: canonical NaN for pattern-matching (RFC-0104 D3)
- DQA CANONICAL_ZERO constant: canonical zero value=0, scale=0 (RFC-0105 D1)
- Re-export CANONICAL_ZERO from crate root1 parent 9104cf2 commit 00b14db
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
192 | 209 | | |
193 | 210 | | |
194 | 211 | | |
| |||
350 | 367 | | |
351 | 368 | | |
352 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
353 | 378 | | |
354 | 379 | | |
355 | 380 | | |
| |||
0 commit comments