cyremur
cyremur•2y ago

int64 vs float64

schema generator seems eager to push for float64 over int64 in my test case
3 Replies
lee
lee•2y ago
v.float64() (i.e. v.number()) is equivalent to javascript number, while v.int64() is a javascript bigint most people don't use javascript bigints, but they're there if you need them 🙂 or if you're passing values through from rust/python
cyremur
cyremurOP•2y ago
TIL bigints are not ints... serves my C# brain right will keep it float for now, seems to behave better with TS/JS
lee
lee•2y ago
yeah it's surprising coming from almost any language that ts/js uses floats where other languages would use integers

Did you find this page helpful?