Function spl_token::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.