dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS3 Absolute Numbers

  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    78

    AS3 Absolute Numbers

    What's the simplest way to get the absolute value of a number, or change a negative number to a positive? Is their a command like php's abs($number)?

    TIA

    Len

  2. #2
    Multitouch Aficionado
    Join Date
    Mar 2006
    Posts
    275
    You mean like Math.abs? =)

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    78
    Doh! Yeah just like that!

    I have the O'Reilly AS3 Cookbook right here and there's no mention of that method. I should have just searched the onboard help.

    Thanks Man!

    L

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center