Int literal out of range

What is equivalent of solidity’s 3_000_000_000 * 10 ** decimals() in Sway?
If i try to put 3_000_000_000 and add 18 decimals it will return int literal out of range

Is there any simple way of doing this?

Hey @KITSCHO, we use u64 to code balances and have 9 decimal places precision for balances under a unit.

This is by choice as one of our key design principle is to minimize execution costs and minimize state growth.

It is a de-facto practice in the space to use 18 decimals to represent the token (in itself, this excess of precision contributes to making the amounts in an ERC20 transfers bloated).