Why timestamp is float?

I don’t have any problem, I’ve just started working with dates and was surprised that timestamp is float rather than int Js.Date | ReScript API. Does anybody know the reason behind it?

That’s because integers in rescript are 32 bit int, which is not enough to store an epoch timestamp.