Garry's Mod Wiki

DNumSlider:SetDecimals

DNumSlider:SetDecimals( number decimals )

Description

Sets the desired amount of numbers after the decimal point.

This doesn't affect values passed to DNumSlider:OnValueChanged.
To get right values passed to DNumSlider:OnValueChanged use math.Round.

Arguments

1 number decimals
0 for whole numbers only, 1 for one number after the decimal point, etc.

Page Links


Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 7