I need to convert float 0.xxxxxxxx format to int 0-127
roundFloatToInt() returns 0 for all those values (i imagine that’s how it’s suppose to work)

however i need to map those <0 values to 0-127, has anyone done something like this or has any examples/reading on how can this be done.

why not just multiply the float by 127 and then convert it?

as for the <0 values, what do you mean you want to map them? What do you want to map them to? Their abs values, or to zero?

sorry about that, apparently i’m an idiot and couldn’t figure this one out myslef. too much ANSI C, AWK and VBA at work, after a mix like that C++ becomes very very complex.