//ww:run package main; import math; export fn main() i32 = { const a = math.frexpf64(8.0); const am: f64 = a.0; if (am != 0.5) { return 1; }; if (a.1 != 4i64) { return 2; }; const b = math.frexpf64(1.0); const bm: f64 = b.0; if (bm != 0.5) { return 3; }; if (b.1 != 1i64) { return 4; }; const c = math.frexpf64(0.0); const cm: f64 = c.0; if (cm != 0.0) { return 5; }; if (c.1 != 0i64) { return 6; }; const d = math.frexpf64(0.75); const dm: f64 = d.0; if (dm != 0.75) { return 7; }; if (d.1 != 0i64) { return 8; }; return 0; };