spl_token_2022

Function amount_to_ui_amount_string

Source
pub fn amount_to_ui_amount_string(amount: u64, decimals: u8) -> String
Expand description

Convert a raw amount to its UI representation (using the decimals field defined in its mint)