Garry's Mod Wiki

DNumSlider:SetDecimals

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.

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 2
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 6