fn main() { let x: i32 = 42; let y: f64 = x as f64; // تبدیل i32 به f64 println!("y = {}", y); }