How to properly divide two values into float x.x
Hello, how do I properly divide doswiadczenie_gracza[id] / doswiadczenie_poziomu[poziom_gracza[id]] ? It should get output value like x.x%.
Thank you. |
Re: How to properly divide two values into float x.x
You can format it any way you want. Just make sure the value you are formatting is a float. If both variables are already floats then you are good. If they are integers, I would do new Float:fResult = float( 1 ) / float( 2 )
Try %0.1f%% |
Re: How to properly divide two values into float x.x
Got it! Thank you many times!
|
| All times are GMT -4. The time now is 07:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.