Re: [go-nuts] Why IF might not work

2021-11-23 Thread Levieux Michel
I'm not going to point you directly at the solution as this is more of an issue with the way you're trying to solve this. But it's not because the result of your division is comprised between 1.0 and 2.0 that a number is a multiple of the other, especially with floating point numbers. You might wa

[go-nuts] Why IF might not work

2021-11-23 Thread Денис Мухортов
I want to collect subsets of numbers in increments of 10. All numbers pass if correctly, except 32.5. The result of its division is 1.625. But for some reason it passes if twice, I added different numbers, all work correctly https://go.dev/play/p/kdJu-PBsbpC -- You received this message becaus