Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cj10driver
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
cj10driver
10mo ago
Three techniques I’ve used to handle floating point imprecision/error: 1. Use storage that handles the level of scale and precision you need. 2. Use long/integer (if it fits). This is how some systems store money, e.g. as micros,