DNumSlider.GetDecimals

From GMod Wiki

Jump to: navigation, search
Function
Syntax NumSlider:GetDecimals( )
Description:
Returns number of decimal of GetDecimals().
Returns: integer Decimals
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DNumSlider.GetDecimals]DNumSlider.GetDecimals [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns number of decimal NumSlider.
Used onNewerClient.png
Code
local NumSlider= vgui.Create( "DNumSlider" )
NumSlider:SetDecimals(5)
print(NumSlider:GetDecimals())      
 
OutputReturns "5" in the console.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox