Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...