DNumberWang.SetDecimals

From GMod Wiki

Jump to: navigation, search
Function
Syntax DNumberWang:SetDecimals( integer )
Description:
Sets the number of decimal places that a DNumberWang will use
Returns: nil
In Object: DNumberWang
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DNumberWang.SetDecimals]DNumberWang.SetDecimals [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets the number of decimal places that a DNumberWang will use to 0, 1, and 3
Used onNewerClient.png
Code
 
DNumberWang:SetDecimals(0)
DNumberWang:SetDecimals(1)
DNumberWang:SetDecimals(3)
 
OutputThe first one will cause the DNW to use no decimals places. Example value would be '4'.

Second example will cause the DNW to use 1 decimal place. Example value would be '4.2'.

Third example will cause the DNW to use 3 decimal places. Example value would be '4.343'.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox