ActionScript Negating a Number

Posted by TheDarkIn1978 on Stack Overflow See other posts from Stack Overflow or by TheDarkIn1978
Published on 2010-06-01T21:20:45Z Indexed on 2010/06/01 21:23 UTC
Read the original article Hit count: 126

Filed under:
|

i'd like to negate a number and would like to know if there's a built in method that will convert a negative number to a positive OR a positive into a negative, depending on the number.

i know about Math.abs(), but that only seems to convert negative into positive. is there a method that will do both?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about math