> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-sync-code-change-04d645a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IB20Asset.fromUIAmount

> ERC-8056 UI-to-raw conversion reference.

## Signature

```solidity theme={null}
function fromUIAmount(uint256 uiAmount) external view returns (uint256);
```

| Field               | Value                   |
| ------------------- | ----------------------- |
| Selector            | `0x65cd9b3c`            |
| Canonical signature | `fromUIAmount(uint256)` |

## Description

Converts `uiAmount` to its raw token representation at the effective multiplier.

Part of the ERC-8056 optional Conversion extension (`IScaledUIAmountConversion`, interface ID `0x57854fc3`). The inverse operation is `toUIAmount(rawAmount)`.

Integer division truncates toward zero, so the round-trip `fromUIAmount(toUIAmount(x))` may return a value less than `x` by up to 1 wei when the multiplier does not evenly divide the amount.

## Parameters

| Name       | Type      | Description                                |
| ---------- | --------- | ------------------------------------------ |
| `uiAmount` | `uint256` | UI (scaled) amount to convert back to raw. |

## Returns

| Name        | Type      | Description                                                                            |
| ----------- | --------- | -------------------------------------------------------------------------------------- |
| *(unnamed)* | `uint256` | Raw token amount at the effective multiplier: `uiAmount * WAD_PRECISION / multiplier`. |

## Related

* `toUIAmount` — the forward (raw → UI) converter.
* `toRawBalance` — deprecated alias with identical behavior; retained in `IB20Asset` for backward compatibility.
