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.