Skip to content

Commit d46e772

Browse files
committed
Version 1.8.0
1 parent a4de489 commit d46e772

20 files changed

Lines changed: 1892 additions & 686 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project, add the following to the `dependencies` section in your `pom.xml` file:
1919
<dependency>
2020
<groupId>com.github.peteroupc</groupId>
2121
<artifactId>numbers</artifactId>
22-
<version>1.7.4</version>
22+
<version>1.8.0</version>
2323
</dependency>
2424
```
2525

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.github.peteroupc</groupId>
55
<artifactId>numbers</artifactId>
66
<packaging>jar</packaging>
7-
<version>1.8.0-SNAPSHOT</version>
7+
<version>1.8.0</version>
88
<name>Arbitrary-Precision Number Library</name>
99
<description>A Java library that supports arbitrary-precision binary and decimal floating-point numbers and rational numbers with arbitrary-precision components, and supports arithmetic with these numbers.</description>
1010
<url>https://github.com/peteroupc/Numbers-Java</url>

src/main/java/com/upokecenter/numbers/EDecimal.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ public static EDecimal FromInt32(int valueSmaller) {
954954
*/
955955
public static EDecimal FromInt64AsUnsigned(long longerValue) {
956956
return longerValue >= 0 ? FromInt64(longerValue) :
957-
FromEInteger(EInteger.FromInt64AsUnsigned(longerValue));
957+
FromEInteger(EInteger.FromInt64AsUnsigned(longerValue));
958958
}
959959

960960
/**
@@ -1208,7 +1208,12 @@ public static EDecimal FromString(
12081208
if (chars == null) {
12091209
throw new NullPointerException("chars");
12101210
}
1211-
return EDecimalCharArrayString.FromString(chars, offset, length, ctx);
1211+
return EDecimalCharArrayString.FromString(
1212+
chars,
1213+
offset,
1214+
length,
1215+
ctx,
1216+
true);
12121217
}
12131218

12141219
/**
@@ -1335,7 +1340,12 @@ public static EDecimal FromString(
13351340
if (bytes == null) {
13361341
throw new NullPointerException("bytes");
13371342
}
1338-
return EDecimalByteArrayString.FromString(bytes, offset, length, ctx);
1343+
return EDecimalByteArrayString.FromString(
1344+
bytes,
1345+
offset,
1346+
length,
1347+
ctx,
1348+
true);
13391349
}
13401350

13411351
/**
@@ -1459,7 +1469,7 @@ public static EDecimal FromString(
14591469
if (str == null) {
14601470
throw new NullPointerException("str");
14611471
}
1462-
return EDecimalTextString.FromString(str, offset, length, ctx);
1472+
return EDecimalTextString.FromString(str, offset, length, ctx, true);
14631473
}
14641474

14651475
static EDecimal SignalUnderflow(EContext ec, boolean negative, boolean

0 commit comments

Comments
 (0)