AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] float"1.24234" to float"1.2" (https://forums.alliedmods.net/showthread.php?t=205430)

.Dare Devil. 01-10-2013 14:54

[SOLVED] float"1.24234" to float"1.2"
 
hello,
How to control numbers after . in float?
Somehow i just forgot it...
Thanks!

ConnorMcLeod 01-10-2013 15:36

Re: float"1.24234" to float"1.2"
 
print %.1f

Cut value : float( floatround( flVariable * 10 ) ) / 10.0


All times are GMT -4. The time now is 13:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.