User | Kudos |
---|---|
10 | |
3 | |
2 | |
2 | |
2 |
Currently, when converting a longer integer type (e.g. u32) to a shorter integer type (e.g. u8), the output value wraps.
By contrast, when converting a floating point type (e.g. dbl) to an integer type (e.g. u8), the output clips.
It would be great to be able to specify the output mode for conversion to integer: Wrap or Clip!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.