NumberRange¶
Supported Datatype
Represents a range of numbers.
Description¶
The NumberRange represents a range of numbers.
NumberRange stores its NumberRange.Min and
NumberRange.Max values as 32-bit floating-point numbers. Very large
numbers or numbers requiring high decimal precision may lose accuracy.
Constructors¶
new Supported Returns a new NumberRange with the minimum and maximum set to the value.
Returns a new NumberRange with the minimum and maximum set to
the value.
new Supported Returns a new NumberRange with the provided minimum and maximum.
Returns a new NumberRange with the provided minimum and
maximum. The minimum must be less than or equal to maximum.
Properties¶
Min Supported The minimum value of the NumberRange.
The minimum value of the NumberRange.
The minimum value of the NumberRange, always less than or equal to the maximum.
Max Supported The maximum value of the NumberRange.
The maximum value of the NumberRange.
The maximum value of the NumberRange, always greater than or equal to the minimum.
Nova binding inventory¶
| Library | Members |
|---|---|
new |
Max, Min |
Roblox reference: NumberRange