Would it not be better if the BigInt
were renamed to BigNumber
to be more consistent with the Number
data type?
No. BigInt
represents only integers, whereas Number
represents floating point numbers (including those with decimal points).
There could also be a limited-size Integer
datatype, as well as an arbitrary-precision BigNumber
(or usually BigDecimal
) datatype, but those are separate things.
2 Likes
No, because the Number data type can represent, for example, 0.5
, which BigInt can't.
2 Likes
How could I be so careless?
I'm thoroughly convinced that I made a big mistake.
Thank you.
1 Like