| ▲ | TZubiri 3 hours ago | |||||||||||||||||||||||||
You can't "fix" floating point code if you are looking for deterministic answers. You just have to use other data types to handle money or complex mathematical operations like 0.2+0.1, no ifs and buts. | ||||||||||||||||||||||||||
| ▲ | messe 2 hours ago | parent [-] | |||||||||||||||||||||||||
Floating point is deterministic, what are you talking about? > You just have to use other data types to handle money or complex mathematical operations like 0.2+0.1 Such as... decimal floating point. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||