Function
src/index.ts:494nerdamer.setConstant
nerdamer.setConstant(name: string, value: string | number): typeof nerdamerRegisters or removes a parser constant using the legacy public entry point. Numeric values are converted to exact rational text before registration so they do not introduce decimal-formatting intent. The string
`'delete'`removes the constant. Registration changes shared parser state.
Parameters
| Name | Type | Description |
|---|---|---|
name | string | Constant name. |
value | string | number | Constant value, or `'delete'` to remove it. |
Returns
typeof nerdamer — The root `nerdamer` function for chaining.
