Skip to content

Data type

NumberRange

Official docs ↗

Represents a range of numbers.

About NumberRange

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 2

  • NumberRange.new(value: number)Returns a new NumberRange with the minimum and maximum set to the value.
  • NumberRange.new(minimum: number, maximum: number)Returns a new NumberRange with the provided minimum and maximum.

Properties 2

  • Min: numberThe minimum value of the NumberRange.

    The minimum value of the NumberRange, always less than or equal to the maximum.

  • Max: numberThe maximum value of the NumberRange.

    The maximum value of the NumberRange, always greater than or equal to the minimum.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.