Class · inherits ValueBase
NumberValue
A container object for a single double-precision floating point number.
About NumberValue
Store a single Luau number, defined to be double-precision floating point number, or more commonly known as a double. This stores a number in 64 bits (8 bytes) using the IEEE 754 representation (1 sign bit, 11 exponent bits and 52 fractional bits). Maximum and minimum values are ±1.7976931348623157e+308, with a range of ±2^53 for exact integer representations.
Like all ValueBase objects, this single value is stored in the
Value property. The Changed event fires with the
new value being stored in the object, instead of a string representing the
property being changed.
Properties 1
Value
: doubleUsed to hold a double value.
Events 1
Changed
NumberValue.Changed:Connect(function(value))Fires whenever theNumberValue.Valueis changed.Fires whenever the
NumberValue.Valuechanges. It runs with the new value being stored in the argument object, instead of a string representing the property being changed.Listening for the
Changedsignal can be useful in games that useNumberValuesto track values like leaderboard statistics or item prices.
NumberValue also has every member of ValueBase. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.