Skip to content

Commit

Permalink
fix: made implicit sign empty string.
Browse files Browse the repository at this point in the history
  • Loading branch information
ciripel committed Jan 30, 2023
1 parent b99e17d commit ed0dfd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.1.2

- Made implicit sign empty string.
## 0.1.1

- Changed intl dependency version to ^0.17.0.
Expand Down
4 changes: 2 additions & 2 deletions lib/src/sio_big_decimal_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class BigDecimal extends Equatable {
/// ```
const BigDecimal.zero({
int precision = defaultPrecision,
}) : this._(null, const [], null, precision);
}) : this._('', const [], null, precision);

const BigDecimal._(
this._sign,
Expand All @@ -129,7 +129,7 @@ class BigDecimal extends Equatable {
this.precision,
);

final String? _sign;
final String _sign;

/// must be a valid `int` value. it is list of integers
final List<int> _abs;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sio_big_decimal
description: Numeric library to manipulate very big numbers keeping very high precision.
version: 0.1.1
version: 0.1.2
repository: https://github.com/SimplioOfficial/sio_big_decimal

environment:
Expand Down

0 comments on commit ed0dfd2

Please sign in to comment.