DNumSlider.GetDecimals
From GMod Wiki
Function | |
Syntax | NumSlider:GetDecimals( ) |
Description: | |
Returns number of decimal of GetDecimals(). | |
Returns: | integer Decimals |
In Object: | Panel |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DNumSlider.GetDecimals]DNumSlider.GetDecimals [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Returns number of decimal NumSlider. |
---|---|
Used on | |
Code | local NumSlider= vgui.Create( "DNumSlider" ) NumSlider:SetDecimals(5) print(NumSlider:GetDecimals()) |
Output | Returns "5" in the console. |