Skip to content

Commit bdf1e58

Browse files
committed
update Java version
1 parent 467ddb5 commit bdf1e58

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

api/com.upokecenter.cbor.JSONOptions.ConversionMode.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Specifies how JSON numbers are converted to CBOR objects when decoding JSON
1111

1212
* `Decimal128 CBORObject.FromObject(EDecimal)`<br>
1313
JSON numbers are decoded to CBOR as their closest-rounded approximation to
14-
an IEEE 854 decimal128 value, using the rules for the EDecimal
15-
form of that approximation as given in the
14+
an IEEE 854 decimal128 value, using the
15+
round-to-nearest/ties-to-even rounding mode and the rules for the
16+
EDecimal form of that approximation as given in the
1617
CBORObject.FromObject(EDecimal) method.
1718
* `Double`<br>
1819
JSON numbers are decoded to CBOR as their closest-rounded approximation as
@@ -130,8 +131,9 @@ A JSON number is decoded to CBOR objects either as a CBOR integer (major
130131
### Decimal128
131132
public static final JSONOptions.ConversionMode Decimal128
132133
JSON numbers are decoded to CBOR as their closest-rounded approximation to
133-
an IEEE 854 decimal128 value, using the rules for the EDecimal
134-
form of that approximation as given in the
134+
an IEEE 854 decimal128 value, using the
135+
round-to-nearest/ties-to-even rounding mode and the rules for the
136+
EDecimal form of that approximation as given in the
135137
<code>CBORObject.FromObject(EDecimal)</code> method. (In some cases,
136138
numbers extremely close to zero may underflow to zero, and
137139
numbers of extremely large absolute value may overflow to

src/main/java/com/upokecenter/cbor/JSONOptions.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ public enum ConversionMode {
8989

9090
/**
9191
* JSON numbers are decoded to CBOR as their closest-rounded approximation to
92-
* an IEEE 854 decimal128 value, using the rules for the EDecimal
93-
* form of that approximation as given in the
92+
* an IEEE 854 decimal128 value, using the
93+
* round-to-nearest/ties-to-even rounding mode and the rules for the
94+
* EDecimal form of that approximation as given in the
9495
* <code>CBORObject.FromObject(EDecimal)</code> method. (In some cases,
9596
* numbers extremely close to zero may underflow to zero, and
9697
* numbers of extremely large absolute value may overflow to

0 commit comments

Comments
 (0)