rust u32 to f64

To convert a u32 to f64 in Rust, you can use the as keyword to perform the conversion. Here's an example:

let my_u32: u32 = 42;
let my_f64: f64 = my_u32 as f64;

In this example, the as f64 part converts the u32 value 42 to a f64 value.