Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephTLyons committed Nov 18, 2024
1 parent fcdd3be commit 174e032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lenient_parse/internal/build.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ fn fallback_build(
coefficient coefficient: Int,
exponent exponent: Int,
) {
let scaled_float_value =
let float_value =
coefficient
|> int.to_float
|> scale.float(-exponent)

use <- bool.guard(is_positive, scaled_float_value)
scaled_float_value *. -1.0
use <- bool.guard(is_positive, float_value)
float_value *. -1.0
}

0 comments on commit 174e032

Please sign in to comment.