Asraw (value)

why does value 65000 equal e8 in value to byte conversion ?
Capture

a byte can only express 255 values. so the value 65000 cannot be expressed with it and the result is useless. what did you expect?

to encode a value of 65000 you need at least 2bytes, ie uint16

Wouldn’t the expected standard behaviour still be to cap the value at FF?

@m4d that could probably be argued. i’d assume what happens now is, what we see is a remainder of what fits in that byte. in either case it is probably not what was expected…

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.