Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement
Float64()
conversion (#132)
Float64 returns the float64 value nearest to x. func (z *Int) Float64() float64 goos: linux goarch: amd64 pkg: github.com/holiman/uint256 cpu: 12th Gen Intel(R) Core(TM) i7-1270P BenchmarkFloat64/Float64/uint256-8 246834 4681 ns/op 0 B/op 0 allocs/op BenchmarkFloat64/Float64/uint256-8 564375 4651 ns/op 0 B/op 0 allocs/op BenchmarkFloat64/Float64/uint256-8 256735 4545 ns/op 0 B/op 0 allocs/op BenchmarkFloat64/Float64/uint256-8 567476 2117 ns/op 0 B/op 0 allocs/op BenchmarkFloat64/Float64/uint256-8 562767 2114 ns/op 0 B/op 0 allocs/op BenchmarkFloat64/Float64/big-8 23724 55516 ns/op 23424 B/op 510 allocs/op BenchmarkFloat64/Float64/big-8 18283 64730 ns/op 23424 B/op 510 allocs/op BenchmarkFloat64/Float64/big-8 18610 60523 ns/op 23424 B/op 510 allocs/op BenchmarkFloat64/Float64/big-8 19528 62700 ns/op 23424 B/op 510 allocs/op BenchmarkFloat64/Float64/big-8 19828 56352 ns/op 23424 B/op 510 allocs/op
- Loading branch information