* @private
(guard, value, format)
| 181 | * @private |
| 182 | */ |
| 183 | constructor(guard, value, format) { |
| 184 | assertPrivate(guard, _guard, "FixedNumber"); |
| 185 | this.#val = value; |
| 186 | this.#format = format; |
| 187 | const _value = toString(value, format.decimals); |
| 188 | defineProperties(this, { format: format.name, _value }); |
| 189 | this.#tens = getTens(format.decimals); |
| 190 | } |
| 191 | /** |
| 192 | * If true, negative values are permitted, otherwise only |
| 193 | * positive values and zero are allowed. |
nothing calls this directly
no test coverage detected