Click to See Complete Forum and Search --> : absolute value with a float


lab1
February 1st, 2008, 02:44 PM
Hello,

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

Thanks

kenrus
February 1st, 2008, 02:55 PM
fabs()

Plasmator
February 1st, 2008, 02:56 PM
fabs, unsurprisingly.