To convert an integer to a float in Rust, use as f64 . This is a useful means to convert from various interchangeable types, you can use inline also. let num = ...
確定! 回上一頁