[Ajuda] Floatround .
#4

O valor que й passado ao segundo parвmetro da funзгo floatround define o tipo de arredondamento .


Se ele for igual a floatround_ceil, a funзгo trabalharб como vocк quer :


pawn Код:
printf("%d", floatround(15.2, floatround_ceil));  //Mostraria o nъmero 16.


Espero ter ajudado .
Reply


Messages In This Thread
Floatround . - by darkxdll - 22.09.2012, 13:21
Re: Floatround . - by ScrashOff - 22.09.2012, 13:49
Re: Floatround . - by darkxdll - 22.09.2012, 13:51
Re: Floatround . - by rjjj - 22.09.2012, 14:03
Re: Floatround . - by darkxdll - 22.09.2012, 14:07
Re: Floatround . - by Jason` - 22.09.2012, 14:08

Forum Jump:


Users browsing this thread: 2 Guest(s)