Hi, I've read from Solidity docs that uint are in step of 8. I would like to have a variable that can be 0 up until 356. How can I do this? Using byte9?
Hey @Allennick,
The first option that I can see is use uint16
.
The second one is like you say, using bytes9
just remember that you store bytes so, if you need to convert to integer you need use a function.
I found an article that explain the use the function for convert bytes to uint
.
I hope it help.
1 Like
Thank you very much @pinajmr
1 Like