Re: [go-nuts] math/big oddities

2018-04-18 Thread agruetz45
Jakob, Thank you. I knew I had to be missing some nuance of how to use the library correctly. Thanks, Anthony On Wednesday, April 18, 2018 at 1:44:13 AM UTC-7, Jakob Borg wrote: > > That is a much too large value to be precisely represented by a float64. > You need more bits, and you need to t

Re: [go-nuts] math/big oddities

2018-04-18 Thread Jakob Borg
That is a much too large value to be precisely represented by a float64. You need more bits, and you need to tell big.Float how many bits that is: https://play.golang.org/p/btm6-_9NQgB //jb On 18 Apr 2018, at 09:57, agruet...@gmail.com wrote: I have been playing wit

[go-nuts] math/big oddities

2018-04-18 Thread agruetz45
I have been playing with the karatsuba algorithm and was doing some testing testing to compute the correct values of two large numbers 3141592653589793238462643383279502884197169399375105820974944592 and 2718281828459045235360287471352662497757247093699959574966967627. When working with the mat