Negative to positive

Nov 12, 2010 at 12:06am

Negative to positive

Hi.

This is pretty silly.

I’m getting both positive and negative float values from an object.
I want to transform them to only positive.
So I multiply the number with itself and then sqrt it.

SI’m sure there are computationally better ways, any suggestions?

Thanks

#53273
Nov 12, 2010 at 12:18am

[abs]

#191612
Nov 12, 2010 at 12:26am

thanks!

#191613

You must be logged in to reply to this topic.