spl_token_2022

Function amount_to_ui_amount

Source
pub fn amount_to_ui_amount(amount: u64, decimals: u8) -> f64
Expand description

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