LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
fabric

Specify mode when converting to integer: Wrap or Clip

Status: New

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.

 

conversion.png

 

It would be great to be able to specify the output mode for conversion to integer: Wrap or Clip!

11 Comments
Dragis
Active Participant

@fabric: If you'd like to see additional support for Fixed-Point, please follow up in this forum with which primitives you'd like to see. There are obvious gaps in support that I'd personally like to see addressed, but there just hasn't been enough push to bring the priority up above other things. I'll give you a Kudo for sure ; )