Results 1 to 5 of 5

Thread: Absolute value without sign *Resolved*

Threaded View

  1. #1

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478

    Absolute value without sign *Resolved*

    Is there a way in C++ to get the absolute value of an integer ??


    if after a calculation i get a value returned -2 how can i use some function to get 2

    I don't want to write
    PHP Code:
    if(c<0--
    Last edited by swatty; Nov 15th, 2002 at 08:19 AM.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

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