absolute value?
#6

For example, just use the normal floatabs function to get the absolute value of a Float and then round it with floatround so it's a integer.
pawn Код:
printf("%d", floatround(floatabs(-47.00)));
// Will print 47.
Reply


Messages In This Thread
absolute value? - by sciman001 - 26.05.2011, 01:34
Respuesta: absolute value? - by admantis - 26.05.2011, 01:35
Re: absolute value? - by sciman001 - 26.05.2011, 01:38
Respuesta: Re: absolute value? - by admantis - 26.05.2011, 01:39
Re: absolute value? - by sciman001 - 26.05.2011, 01:40
Respuesta: absolute value? - by admantis - 26.05.2011, 01:42
Re: absolute value? - by sciman001 - 26.05.2011, 01:45
Respuesta: absolute value? - by admantis - 26.05.2011, 01:49
Re: absolute value? - by sciman001 - 26.05.2011, 01:50
Re: absolute value? - by Steven82 - 26.05.2011, 03:09

Forum Jump:


Users browsing this thread: 7 Guest(s)