Operator “as” in Rust / Operador “as” en Rust

Most important code: fn essential() { let solana_mining_amount: f64 = 0.00001274; // float let solana_mining_amount_int: u64 = solana_mining_amount.ground() as u64; // int println!(“{}”, solana_mining_amount); // 0.00001274 println!(“{}”, solana_mining_amount_int); // 0 let unsigned_integer : u64 = 6; let signed_integer : i64 = unsigned_integer as i64; println!(“{}”, signed_integer); } Enter fullscreen mode Exit fullscreen mode The as […]