---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/extension/functions/decimalPlaces.md
---
[Reference](../../../../index.md) / [@getenginex/sdk/extension](../index.md) / decimalPlaces

# decimalPlaces()

> **decimalPlaces**(): `ZodMiniType`<`number`>

Decimal places of the currency: an integer from 0 to 8. Strict even in `'warn'` mode. For SDK packages
(via `@getenginex/sdk/extension`), not for apps.

## Returns

`ZodMiniType`<`number`>

## Example

```ts
wire({ currency_decimal_places: decimalPlaces() }) // 2 → cents
```

## Throws

Nothing: the schema does not throw; the failure becomes `VALIDATION_ERROR` in the transport.
