Skip to content

Commit 63b75e0

Browse files
committed
documents floating point precision
1 parent a24102e commit 63b75e0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ MMDB2Decoder.lookup(ip, meta, tree, data)
4040
|> MMDB2Decoder.pipe_lookup({8, 8, 8, 8})
4141
```
4242

43+
### Floating Point Precision
44+
45+
Please be aware that all values of the type `float` are rounded to 4 decimal
46+
digits and `double` values to 8 decimal digits.
47+
48+
This might be changed in the future if there are datasets known to return
49+
values with a higher precision.
50+
51+
4352
## License
4453

4554
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)

0 commit comments

Comments
 (0)