View Single Post
Old 05 September 2017, 20:09   #39
alkis
Registered User
 
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 719
abs is for integers, fabs is for floats.
abs is/should-be prototyped in <stdlib.h>
fabs is/should-be prototyped in <math.h>

check the type of the argument and use the apropiate one.
alkis is offline  
 
Page generated in 0.04352 seconds with 11 queries