> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FixedFormat

```ts theme={null}
type FixedFormat: number | string | {
  "decimals": number;
  "signed": boolean;
  "width": number;
};
```

Returns a new FixedFormat for `value`.

If `value` is specified as a `number`, the bit-width is 128 bits and `value` is used for the `decimals`.

A string `value` may begin with `fixed` or `ufixed` for signed and unsigned respectfully. If no other properties are
specified, the bit-width is 128-bits with 18 decimals.

To specify the bit-width and demicals, append them separated by an `"x"` to the `value`.

For example, `ufixed128x18` describes an unsigned, 128-bit wide format with 18 decimals.

If `value` is an other object, its properties for `signed`, `width` and `decimals` are checked.

## Source

[utils/fixednumber.ts:52](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/fixednumber.ts#L52)
