mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 12:18:15 +00:00
Implement ldexp and frexp in native Odin
This commit is contained in:
@@ -436,7 +436,7 @@ internal_rat_to_float :: proc($T: typeid, z: ^Rat, allocator := context.allocato
|
||||
|
||||
mantissa >>= 1
|
||||
|
||||
f = T(math.ldexp(f64(mantissa), i32(exp-MSIZE1)))
|
||||
f = T(math.ldexp(f64(mantissa), exp-MSIZE1))
|
||||
if math.is_inf(f, 0) {
|
||||
exact = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user