Skip to content

Commit

Permalink
Merge pull request #4 from yawaramin/patch-1
Browse files Browse the repository at this point in the history
Use Decimal custom inequality
  • Loading branch information
dmbaturin committed May 4, 2023
2 parents a3ebd59 + f09a1f4 commit f6ab907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module BigNumber = struct
while TOML requires all special float values to be lowercase. *)
let float_to_string x = Decimal.to_string x |> String.lowercase_ascii
let float_of_boolean b = if b then Decimal.one else Decimal.zero
let float_to_boolean x = (x <> Decimal.zero)
let float_to_boolean x = Decimal.(x <> zero)
let float_of_int = Decimal.of_bigint
let int_of_float = Decimal.to_bigint
Expand Down

0 comments on commit f6ab907

Please sign in to comment.