Results 1 to 3 of 3

Thread: (javascript) getting the negative version of a positive number. **Resolved**

Threaded View

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (javascript) getting the negative version of a positive number. **Resolved**

    OK, I know there is a term for this but I never payed attention in school and I'm sure if I knew the term I could look it up myself but since I didnt I have to ask. I need the negative version of a positive number.... for example I have 500 but I need -500. I can easily do it this way (500 - 500 - 500) but I know that is poor, and am sure javascript has a function to do this.
    Thanks
    Michael
    Last edited by msimmons; May 28th, 2002 at 11:51 AM.
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

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