solana_sdk::native_token

Function sol_to_lamports

source
pub fn sol_to_lamports(sol: f64) -> u64
Expand description

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