CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2001
    Posts
    1,029

    absolute value with a float

    Hello,

    abs() takes int only. How can I do absolute value with a float?

    Thanks

  2. #2
    Join Date
    May 2003
    Location
    San Antonio TX
    Posts
    380

    Re: absolute value with a float

    fabs()
    John 3:16
    For God so loved the world ...

  3. #3
    Join Date
    Jun 2006
    Location
    M31
    Posts
    885

    Re: absolute value with a float

    fabs, unsurprisingly.

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

Featured