return float
pretty much i have a function like this and im gettin an error on it
Code:
public test() |
Re: return float
your method should be like this
public Float:test() { //your code } |
Re: return float
thanks that worked heres another question lets say i have NewRanks[33][2] and i want NewRanks[33][1] to be a float but NewRanks[33][0] to not be a float is it possible in doing that some how?
edited***** nvm im just gonna use float() to make the integer to a float and then floatround() it when i want it into an integer again but thanks alot for ur help on the first post |
Re: return float
You can using structures :
Code:
|
Re: return float
how do i make a float only have 2 decimal places for example instead ofi t being 10.00000 it will be 10.00
|
Re: return float
If you want to display only 2 numbers, use %.2f
|
Re: return float
If you want to truncate decimal places in your code and not in printing, you can use this:
PHP Code:
PHP Code:
|
Re: return float
exactly what i need but i got an error on this line with tag mismatch
Code:
return float( floatround( fValue * fShifter, floatround_floor ) / fShifter ); |
Re: return float
Just to know, the whole plugin needs to work with 2 decimals ?
|
Re: return float
ya so 14.5555 will output 14.55 when its called cause im makin the plugin do calculations so its not like i can just .2f% it and all
|
| All times are GMT -4. The time now is 04:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.