[go-nuts] Incorrect arithmetic answers

2020-06-01 Thread Saksham Saxena
Hello, I was trying to implement Substring Search using a rolling hash function (fairly simple implementation): https://play.golang.org/p/_fjgxPC06So This works correctly and as expected. However, if you change the const `baseNumber` to 128, the program is unable to do the intermediate arithme

[go-nuts] Re: Incorrect arithmetic answers

2020-06-01 Thread cratermoon
Floating point calculations are imprecise. https://0.30004.com/ https://www.phys.uconn.edu/~rozman/Courses/P2200_15F/downloads/floating-point-guide-2015-10-15.pdf s On Monday, June 1, 2020 at 11:56:55 AM UTC-7, Saksham Saxena wrote: > > Hello, > > I was trying to implement Substring

Re: [go-nuts] Re: Incorrect arithmetic answers

2020-06-01 Thread Michael Jones
fixed, in light of the prior crucial comment... https://play.golang.org/p/d-AwGEwj_YB On Mon, Jun 1, 2020 at 12:20 PM wrote: > Floating point calculations are imprecise. > > https://0.30004.com/ > > https://www.phys.uconn.edu/~rozman/Courses/P2200_15F/downloads/floating-point-guide-2

[go-nuts] Go 1.14.4 and Go 1.13.12 are released

2020-06-01 Thread Dmitri Shuralyov
Hello gophers, We have just released Go versions 1.14.4 and 1.13.12, minor point releases. These releases include fixes to the go doc command, the runtime, and the encoding/json, go/types, math/big, and os packages. View the release notes for more information: https://golang.org/doc/devel/re