Skip to content

Commit 939d631

Browse files
committed
Version bump after release
1 parent ec89c09 commit 939d631

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
## Descriptive changelog
22
(All dates are DD.MM.YYYY)
3-
##### 0.3.0 - SNAPSHOT
3+
##### 0.3.1-SNAPSHOT
4+
5+
6+
##### 0.3.0 - 17.4.2021
7+
- Fixed losing scale when there is a carry in addition in BigDecimal.
8+
- Fixed BigInteger `numberOfDecimalDigits` which would return 0 for 0 instead of 1.
49
- Fixed #168 - Fix invalid rounding results
510
Development roadmap for version 0.3.0 states 'API statbilization' so:
611
- **API CHANGE** Extensions functions used to create BigDecimal from primitive types have been split into 'toBigDecimal(exponentModifier...)'

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This is an implementation of pure kotlin arbitrary integer and floating-point ar
1313

1414
**The APIs might change until v1.0**
1515

16-
Version 0.3.0 will bring API changes to BigDecimal API see changelog for full list.
16+
Version 0.3.0 brings API changes to BigDecimal API see changelog for full list.
1717

1818
Also, there is a plan to implement platform native versions.
1919

@@ -28,7 +28,7 @@ and bug-fixing.
2828

2929
#### Gradle
3030
```kotlin
31-
implementation("com.ionspin.kotlin:bignum:0.2.8")
31+
implementation("com.ionspin.kotlin:bignum:0.3.0")
3232
```
3333

3434
#### Snapshot builds
@@ -38,7 +38,7 @@ repositories {
3838
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
3939
}
4040
}
41-
implementation("com.ionspin.kotlin:bignum:0.3.0-SNAPSHOT ")
41+
implementation("com.ionspin.kotlin:bignum:0.3.1-SNAPSHOT")
4242

4343
```
4444

@@ -364,10 +364,10 @@ Standard arithmetic operations that are present:
364364
Operations are executed with existing significands and then rounded down afterwards. Decimal mode parameter controls the precision and rounding mode
365365

366366
### DecimalMode
367-
This is a counterpart to the Java BigDecimal MathContext.
367+
This is a counterpart to the Java BigDecimal MathContext and scale at the same time. Decimal mode API is under revision and will be improved during 0.3.0-0.4.0 library lifecycle
368368

369369
```kotlin
370-
data class DecimalMode(val decimalPrecision : Long = 0, val roundingMode : RoundingMode = RoundingMode.NONE)
370+
data class DecimalMode(val decimalPrecision : Long = 0, val roundingMode : RoundingMode = RoundingMode.NONE, val scale: Long = -1)
371371
```
372372

373373
`decimalPrecision` defines how many digits should significand have

bignum/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ repositories {
6464
jcenter()
6565
}
6666
group = "com.ionspin.kotlin"
67-
version = "0.3.0-SNAPSHOT"
67+
version = "0.3.1-SNAPSHOT"
6868

6969
val ideaActive = System.getProperty("idea.active") == "true"
7070

0 commit comments

Comments
 (0)