solana_program::native_token

Function lamports_to_sol

source
pub fn lamports_to_sol(lamports: u64) -> f64
Expand description

Approximately convert fractional native tokens (lamports) into native tokens (SOL)