-
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.
reflect: Determine equivalency of float32 or float64, and *big.Float …
…via string representation (#919) * Alter handling of float32 and float64 values within reflect.Number (#914) * 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 * Removing AllowRoundingNumbers option and modifying reflect.Number accordingly (#914)
- Loading branch information
1 parent
8d0d29d
commit 3c7a391
Showing
3 changed files
with
40 additions
and
584 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
Oops, something went wrong.