05.09.2017, 15:42
Код:
new Float:number; number = -0.57; if(number < 0) { number = -number; printf("%d", number); }
I search to transform -0.57 to 0.57
new Float:number; number = -0.57; if(number < 0) { number = -number; printf("%d", number); }
if(number < 0)
{
number = -number;
printf("%f", number);
}
%d = integer
%f = float
printf("%f", -number);
number *= -1;
floatabs(Float: value);