spl_token_2022

Function amount_to_ui_amount_string_trimmed

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

Convert a raw amount to its UI representation using the given decimals field Excess zeroes or unneeded decimal point are trimmed.