pub fn opt_i32(v: Option<i32>) -> f64
Option<i32> → f64(None → NaN,Some(n) → n as f64)。 i32 ≤ 2^31 < 2^52 mantissa,无精度损失。
Option<i32>
f64