NumberValue
Official
Value wrapping a number.
Import:
import { NumberValue } from 'obsidian';Signature:
export class NumberValue extends PrimitiveValue<number>Extends: PrimitiveValue<number>
Constructor
new NumberValue(value: number)Constructor.
To get the constructor instance, use getNumberValueConstructor from obsidian-typings/implementations.
Properties
| Property | Type | Description | |
|---|---|---|---|
| data | number | The wrapped primitive value. (Inherited from PrimitiveValue) | |
| type | string |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| isTruthy() | boolean | Returns a boolean indicating whether this obsidian#PrimitiveValue is truthy.(Inherited from PrimitiveValue) | |
| toString() | string | Get the string representation of this obsidian#PrimitiveValue.(Inherited from PrimitiveValue) |
Links to this page: