mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
rules
This commit is contained in:
parent
a9b4f8e83b
commit
e6efc04756
8494 changed files with 495610 additions and 0 deletions
|
|
@ -0,0 +1,90 @@
|
|||
# This file is automatically generated. Please don't edit it manually.
|
||||
# To submit a bug report on the content, see
|
||||
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
|
||||
|
||||
name: NumberValue
|
||||
type: class
|
||||
memory_category: Instances
|
||||
summary: |
|
||||
A container object for a single double-precision floating point number.
|
||||
description: |
|
||||
Store a single [Luau number](https://luau.org/syntax#number-literals), defined
|
||||
to be
|
||||
[double-precision floating point number](https://en.wikipedia.org/wiki/Double-precision_floating-point_format),
|
||||
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 `Class.ValueBase` objects, this single value is stored in the
|
||||
`Class.NumberValue.Value|Value` property. The `Changed` event fires with the
|
||||
new value being stored in the object, instead of a string representing the
|
||||
property being changed.
|
||||
code_samples:
|
||||
- Changed-Event
|
||||
inherits:
|
||||
- ValueBase
|
||||
descendants: []
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
properties:
|
||||
- name: NumberValue.Value
|
||||
summary: |
|
||||
Used to hold a double value.
|
||||
description: |
|
||||
Used to hold a double value.
|
||||
code_samples: []
|
||||
type: double
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security:
|
||||
read: None
|
||||
write: None
|
||||
thread_safety: ReadSafe
|
||||
category: Data
|
||||
serialization:
|
||||
can_load: true
|
||||
can_save: true
|
||||
capabilities: []
|
||||
methods: []
|
||||
events:
|
||||
- name: NumberValue.Changed
|
||||
summary: |
|
||||
Fires whenever the `Class.NumberValue.Value` is changed.
|
||||
description: |
|
||||
Fires whenever the `Class.NumberValue.Value` changes. It runs with the new
|
||||
value being stored in the argument object, instead of a string
|
||||
representing the property being changed.
|
||||
|
||||
Listening for the `Changed` signal can be useful in games that use
|
||||
`NumberValues` to track values like leaderboard statistics or item prices.
|
||||
code_samples:
|
||||
- NumberValue-Changed1
|
||||
parameters:
|
||||
- name: value
|
||||
type: double
|
||||
default:
|
||||
summary: |
|
||||
The new value after the change.
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
security: None
|
||||
capabilities: []
|
||||
- name: NumberValue.changed
|
||||
summary: ''
|
||||
description: ''
|
||||
code_samples: []
|
||||
parameters:
|
||||
- name: value
|
||||
type: double
|
||||
default:
|
||||
summary: ''
|
||||
tags:
|
||||
- Deprecated
|
||||
deprecation_message: |
|
||||
This event is a deprecated variant of `Class.NumberValue.Changed` which
|
||||
should be used instead.
|
||||
security: None
|
||||
capabilities: []
|
||||
callbacks: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue