Function otter_api_tests::otter_support::prelude::cast
source · [−]Expand description
Cast from one machine scalar to another.
Examples
let twenty: f32 = num::cast(0x14).unwrap();
assert_eq!(twenty, 20f32);
Cast from one machine scalar to another.
let twenty: f32 = num::cast(0x14).unwrap();
assert_eq!(twenty, 20f32);