Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference {% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %} # Decimal128Value class Represents a 128-bit decimal type in Firestore documents. Decimal128Value Signature: ```typescript export declare class Decimal128Value ``` ## Constructors | Constructor | Modifiers | Description | | --- | --- | --- | | [(constructor)(value)](./firestore_lite.decimal128value.md#decimal128valueconstructor) | | Constructs a new instance of the Decimal128Value class | ## Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [stringValue](./firestore_lite.decimal128value.md#decimal128valuestringvalue) | | string | | ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [isEqual(other)](./firestore_lite.decimal128value.md#decimal128valueisequal) | | Returns true if this Decimal128Value is equal to the provided one. | | [toJSON()](./firestore_lite.decimal128value.md#decimal128valuetojson) | | Returns a JSON-serializable representation of this Decimal128Value instance. | ## Decimal128Value.(constructor) Constructs a new instance of the `Decimal128Value` class Signature: ```typescript constructor(value: string); ``` #### Parameters | Parameter | Type | Description | | --- | --- | --- | | value | string | | ## Decimal128Value.stringValue Signature: ```typescript readonly stringValue: string; ``` ## Decimal128Value.isEqual() Returns true if this `Decimal128Value` is equal to the provided one. Signature: ```typescript isEqual(other: Decimal128Value): boolean; ``` #### Parameters | Parameter | Type | Description | | --- | --- | --- | | other | [Decimal128Value](./firestore_lite.decimal128value.md#decimal128value_class) | The Decimal128Value to compare against. 'true' if this Decimal128Value is equal to the provided one. | Returns: boolean ## Decimal128Value.toJSON() Returns a JSON-serializable representation of this `Decimal128Value` instance. Signature: ```typescript toJSON(): object; ``` Returns: object a JSON representation of this object.