* @private
(guard, value, format)
| 184 | * @private |
| 185 | */ |
| 186 | constructor(guard, value, format) { |
| 187 | (0, errors_js_1.assertPrivate)(guard, _guard, "FixedNumber"); |
| 188 | this.#val = value; |
| 189 | this.#format = format; |
| 190 | const _value = toString(value, format.decimals); |
| 191 | (0, properties_js_1.defineProperties)(this, { format: format.name, _value }); |
| 192 | this.#tens = getTens(format.decimals); |
| 193 | } |
| 194 | /** |
| 195 | * If true, negative values are permitted, otherwise only |
| 196 | * positive values and zero are allowed. |