Hello,

My question is like in subject. Where `doubleValueOfOne`

is calculated from operation:

`0.4 + 0.4 + 0.4 - 1.0 +0.4 + 0.4`

So on the end it’s `1.0`

.

I know it’s the case of not ideal precision of `double`

.

So I suppose I could use something like:

`double valueOfOne > 1.00000001`

But I feel it’s not good solution. And I’ve heard on different machines there could be various precision of double. I am not sure if it’s true. But I need some good and smart solution.

Could anyone give some hint?

Thanks in advance for any help.

Best Regards