---
title: "NumberValue"
description: "Stores a number."
canonical: "https://docs.glorpia.com/instances/numbervalue"
markdown: "https://docs.glorpia.com/instances/numbervalue.md"
---
# NumberValue

Stores a number.

**Category:** Instances / ValueBase

## Inheritance

`NumberValue` is a `ValueBase` class and inherits the shared hierarchy API from `Instance`.

## Members

| Name | Type | Description |
| --- | --- | --- |
| `Value` | number | The value stored by this instance. inf and -inf are supported. |
| `Changed` | signal | Fires when Value changes and passes the new value. |

## Example

```luau
local value = Instance.new("NumberValue")
value.Name = "ExampleValue"
value.Value = 12.5
value.Parent = workspace

value.Changed:Connect(function(newValue)
    print(newValue)
end)
```

## Related

- [ValueBase](https://docs.glorpia.com/instances/valuebase.md) — Shared Value and Changed members for value classes.
- [Instances](https://docs.glorpia.com/instances.md) — Browse the complete Glorpia class reference.
