floatround(value, floatround_round)
if the value == 0.4 and I will use floatround_round it will do -> 0.0? Otherwise if 0.5 -> 1.0 ?
|
Re: floatround(value, floatround_round)
Questions like this are best answered by trial and error since you've already had to wait for me to answer it for about 10 minutes now, but yes.
|
Re: floatround(value, floatround_round)
Thanks and
Quote:
|
Re: floatround(value, floatround_round)
But not. It's a round native, so it returns an integer instead of float like you specifed. So basically floatround_round returns the closest integer and with ~ .500000 the higher one.
|
Re: floatround(value, floatround_round)
Hawk said that if you would have tested the function you would have got the answer to your question quicker than on the forum.
|
Re: floatround(value, floatround_round)
Quote:
I just was lazy to create new file and write client_print :mrgreen: |
Re: floatround(value, floatround_round)
Quote:
|
| All times are GMT -4. The time now is 22:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.