Skip to content

Commit

Permalink
Ready for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Dec 26, 2024
1 parent 9d29a68 commit 3ed9150
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gen/number.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ func (n *Number) AsNum() (num any) {
}
// A simple division loses precision yet dividing 1.0 by the
// divisor and then multiplying the fraction seems to solve the
// issue on MacOS anyway. As a guess it might have something to do
// with the operation being in base 2 with a special case for 1.0
// divided by a number.
// issue on arm64 anyway.
f += float64(n.Frac) * (1.0 / float64(n.Div))
}
if n.Neg {
Expand Down

0 comments on commit 3ed9150

Please sign in to comment.