* @private
(guard: any, value: bigint, format: any)
| 251 | * @private |
| 252 | */ |
| 253 | constructor(guard: any, value: bigint, format: any) { |
| 254 | assertPrivate(guard, _guard, "FixedNumber"); |
| 255 | |
| 256 | this.#val = value; |
| 257 | |
| 258 | this.#format = format; |
| 259 | |
| 260 | const _value = toString(value, format.decimals); |
| 261 | |
| 262 | defineProperties<FixedNumber>(this, { format: format.name, _value }); |
| 263 | |
| 264 | this.#tens = getTens(format.decimals); |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * If true, negative values are permitted, otherwise only |
nothing calls this directly
no test coverage detected