# `DeltaCalc.Quantization`
[🔗](https://github.com/ZenHive/delta_calc/blob/v0.3.0/lib/delta_calc/quantization.ex#L1)

Legacy output-boundary quantization retained for retired-dashboard compatibility.

## API Functions
| Function | Arity | Description | Param Kinds |
| --- | --- | --- | --- |
| `quantize` | 1 | Round a Decimal to the retired dashboard's eight-place compatibility format. | `value: value` |

# `quantize`

```elixir
@spec quantize(Decimal.t()) :: Decimal.t()
```

Round a Decimal to the retired dashboard's eight-place compatibility format.

## Parameters

  * `value` - Value to quantize as a canonical decimal string; native Elixir callers may also pass Decimal or integer. (value)

## Returns

Value rounded to the legacy 8-place format (`decimal`)

```elixir
# descripex:contract
%{
  params: %{
    value: %{
      description: "Value to quantize as a canonical decimal string; native Elixir callers may also pass Decimal or integer.",
      kind: :value,
      schema: %{"type" => "string"}
    }
  },
  returns: %{
    type: :decimal,
    description: "Value rounded to the legacy 8-place format"
  }
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
