int64 vs float64
schema generator seems eager to push for float64 over int64 in my test case
3 Replies
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/pythonTIL bigints are not ints... serves my C# brain right
will keep it float for now, seems to behave better with TS/JS
yeah it's surprising coming from almost any language that ts/js uses floats where other languages would use integers