Skip to content

Commit

Permalink
tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
simontreanor committed Oct 16, 2024
1 parent 2829952 commit ac381ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Currency.fs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module Currency =
/// raise to the standard currency unit, e.g. 1234¢ -> $12.34
let toDecimal (c: int64<Cent>) = decimal c / 100m

/// convert a decimal cent value to an integer cent value, dropping any fractional value, 1234.5678¢ -> 1234¢
/// convert a decimal cent value to an integer cent value, rounding as appropriate, e.g. 1234.5678¢ -> 1234¢ or 1235¢
let fromDecimalCent rounding (c: decimal<Cent>) = c |> decimal |> round rounding

/// convert an integer cent value to a decimal cent value, e.g. for precise interest calculation, 1234¢ -> 1234.0000¢
Expand Down

0 comments on commit ac381ea

Please sign in to comment.