Provide a first class Decimal class to allow arbitrarty precision decimal types that support monetary mathematics. #1119
DamianReeves
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
We've considered a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Floats are not ideal for monetary calculations as they are not precise. It would be beneficial if Pkl included a decimal type to help with not only specifying decimal types, (which is fairly easy to do), but also providing decimal mathematics (which is a bit more difficult to get right on the user side).
Beta Was this translation helpful? Give feedback.
All reactions