On 3/2/13 4:48 PM, Renato Lenzi wrote:
Hi there. How can i cast from int to float? that is: let x = 3 let mut f = 3.0 f = f * xthis doesn't work... i have to change from int to float... is this possible?
Use `as`; e.g. `f = f * (x as float)`. Patrick _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
