3 ms·
The whole “never use floats as money” thing is a little overblown. If you need exact values, where everything needs to add up in the end, sure. But if you’re ge
by pgwhalen 9y ago
The whole “never use floats as money” thing is a little overblown. If you need exact values, where everything needs to add up in the end, sure. But if you’re generating the value yourself it doesn’t really need to be precise. For example - create a sell order for ten percent less than the current price - that doesn’t need to be exact.