-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reflect: Determine equivalency of float32 or float64, and *big.Float via string representation #919
Conversation
) * The reflect.Number function was handling float32 and float64 values by determining whether the value in the *big.Float generated through calling val.As() was an exact representation by examining the accuracy produced when calling Float32() or Float64() on the *big.Float * The reflect.Number function has been altered to verify whether the string representation, generated by calling Text(), of the generated *big.Float and a *big.Float created from the float32 or float64 value are identical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick question!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🚀
Latest terraform-plugin-framework contains fix for: * hashicorp/terraform-plugin-framework#914 * hashicorp/terraform-plugin-framework#919
* Adding function tests for framework protocol 5 & 6 and protocol 6 mux providers (#202) * Adding copyright headers (#202) * Linting (#202) * Adding function tests for protocol v5 and protocol v6 providers (#202) * Amending provider defined function tests for number until bug fix on go.cty is released (#202) * Adding function testing for mux providers (#202) * Adding function testing for tf6to5provider (#202) * Adding copyright headers (#202) * Bumping terraform-plugin-framework version to latest (#202) Latest terraform-plugin-framework contains fix for: * hashicorp/terraform-plugin-framework#914 * hashicorp/terraform-plugin-framework#919 * Bumping terraform-plugin-testing to v1.7.0 (#202) * Refactoring to return function.FuncError (#202) * Updates following code review (#202)
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Closes: #914