how to add integer and float in rust
fn main(){
let x:f32=20.0;
let y:i32=10;
let sum = x + y as f32;
println!("{}",sum);
}
how to add integer and float in rust
fn main(){
let x:f32=20.0;
let y:i32=10;
let sum = x + y as f32;
println!("{}",sum);
}
string from float rust
let pi = 3.1415926;
let s = pi.to_string(); // : String
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us