DEV Community

Discussion on: Three bytes to an integer

wayofthepie profile image
Stephen O'Brien Author

Agreed, that's why I went with the bit shifts. Shifting by 16 is a little less magical than multiplying by 65536 😄 neither are great in this case though and I went with what @lonami mentioned.

I need to drill deeper into the standard lib apis for sure!