-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types/basetypes: Fix Float64Attribute precision comparisons (#817)
* implement without semantic equality initially * add initial semantic equals * remove todos + add doc string * add semantic equal tests * add comment * added changelog * Update .changes/unreleased/BUG FIXES-20230803-120411.yaml Co-authored-by: Brian Flad <[email protected]> * add panic prevent * removed copy * space * Update types/basetypes/float64_value.go Co-authored-by: Brian Flad <[email protected]> * add docs for nan * fix cmp nil error * add another test --------- Co-authored-by: Brian Flad <[email protected]>
- Loading branch information
1 parent
f937d74
commit a4b8bc6
Showing
5 changed files
with
245 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: BUG FIXES | ||
body: 'types/basetypes: Prevented Float64Value Terraform data consistency errors for | ||
numbers with high precision floating point rounding errors' | ||
time: 2023-08-03T12:04:11.996955-04:00 | ||
custom: | ||
Issue: "817" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters