|
|
|
|
|
by neoeldex
3159 days ago
|
|
They are different data types, but integer is also ambiguous, did you mean signed or unsigned, 32 or 64 bit.
Its about your use case, and when your parsing something with loose typing into stricter types, make sure you validate accordingly. But being able to specify the exact type kind of defeats the purpose of an interchangeable data format. |
|
OTOH, exact decimals (of which integers are a subset) differ fundamentally in meaning from limited precision binary (or decimal, though that's more rarely encountered) floating point approximations. Which matters in interchange as well as schema.