Projects / Intermediate

💴 Fix the sums that come out one yen off, with integers and Decimal

What you end up with

A tax function that refuses floats, a sharing function whose shares always add up to the original amount for any amount and head count, and tests that check it against 2,000 inputs. And you can write down "where we round" as part of the spec.

🔒

Create a free account to read this project

Sign up for a free membership to read every free project. Already have an account? Please sign in.

Other projects

← Back to all projects