pub fn double_to_integer(d: f64) -> Result<i32>
Converts the double d to an integer and fails if the conversion is not possible.
d