Functions (round,ceil,floor) IDK
Can someone can tellRound,ceil,floor
Its like PHP http://php.net/manual/en/function.ceil.php Example(5.5 to 6; 5,4 to 6) http://php.net/manual/en/function.floor.php Example(5.5 to 5; 5,4 to 5) http://php.net/manual/en/function.round.php Example(5.5 to 6; 5,4 to 5) |
Re: Functions (round,ceil,floor) IDK
ceil(x) = floatround(x, floatround_ceil)
floor(x) = floatround(x, floatroud_floor) round(x) = floatround(x) |
Re: Functions (round,ceil,floor) IDK
Tnx,
new Skaits = floatround(Users/MAX_PER_CT,floatround_ceil); Tag mismach |
Re: Functions (round,ceil,floor) IDK
use floats, not ints
|
Re: Functions (round,ceil,floor) IDK
new Skaits = Users / MAX_PER_CT
Page 103 : http://www.compuphase.com/pawn/Pawn_Language_Guide.pdf Code:
/ e1 / e2 For positive values, this should work : PHP Code:
|
Re: Functions (round,ceil,floor) IDK
yeah round will round the value after point like it would do 5.4 to 5 and 5.6 to 6.CEIL function will give the Highest value of the given number where as FLOOR function will give the lowest value to the given Number. ceil will round 23.4 to 24 and floor will gave 23 even if its 23.8
|
Re: Functions (round,ceil,floor) IDK
But why this give me a tag mismatch error?
PHP Code:
|
Re: Functions (round,ceil,floor) IDK
Quote:
|
| All times are GMT -4. The time now is 09:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.