常用solidity中uint数据类型的十进制数值对照
uint | digits | max value |
---|---|---|
uint8 | 3 | 255 |
uint16 | 5 | 65,535 |
uint24 | 8 | 16,777,215 |
uint32 | 10 | 4,294,967,295 |
uint40 | 13 | 1,099,511,627,775 |
uint48 | 15 | 281,474,976,710,655 |
uint56 | 17 | 72,057,594,037,927,935 |
uint64 | 20 | 18,446,744,073,709,551,615 |
uint72 | 22 | 4,722,366,482,869,645,213,695 |
uint80 | 25 | 1,208,925,819,614,629,174,706,175 |
uint88 | 27 | 309,485,009,821,345,068,724,781,055 |
uint96 | 29 | 79,228,162,514,264,337,593,543,950,335 |
uint128 | 39 | 340,282,366,920,938,463,463,374,607,431,768,211,455 |
uint256 | 78 | 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457,584,007,913,129,639,935 |