Generalised floating point multiplication: Difference between revisions
Content added Content deleted
m (corner case) |
|||
Line 922: | Line 922: | ||
end |
end |
||
arr = reverse(digits(BigInt(round(x * big"3.0"^MAX_PRECISION)), base=3)) |
arr = reverse(digits(BigInt(round(x * big"3.0"^MAX_PRECISION)), base=3)) |
||
return canonicalize!(BalancedTernary(arr, MAX_PRECISION)) |
|||
canonicalize!(b) |
|||
return b |
|||
end |
end |
||