Number類型統一按浮點數處理,64位存儲
整數是按最大54位來算最大最小數的,否則會喪失精度;
某些操作(如數組索引還有位操作)是按32位處理的~~
浮點數範圍:
as large as ±1.7976931348623157 × 10的308次方
as small as ±5 × 10的−324次方
精確整數範圍:
number format allows you to exactly represent all integers between
−9007199254740992 and 9007199254740992 (即正負2的53次方)
數組索引:
正負2的31次方
Javascript 整數,浮點最大值
版主: Cherry