Skip to content

Commit

Permalink
fix delta value
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiotucano committed Dec 3, 2024
1 parent 7742d66 commit 1c906bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.4+2
* Fix Delta value

## 1.0.3+1
* Fix bug when increase precision

Expand Down
2 changes: 1 addition & 1 deletion lib/src/round_abnt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RoundAbnt implements RoundAbntImplementation {
var negativo = (aValue < 0);

//@andrellopes fix calc using delta value
aValue = aValue.abs() + 0.00000000000001;
aValue = aValue.abs() + delta;//0.00000000000001;

// Calculate the power of 10
var pow = math.pow(10, digits.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: roundabnt
description: This package allow user to round a number with brazilian abnt rule
version: 1.0.3+1
version: 1.0.4+2
homepage: https://github.com/sergiotucano/roundabnt

environment:
Expand Down

0 comments on commit 1c906bc

Please sign in to comment.