≈ the.bay.news

Exact — finance math that can't lose a cent

The Rust Programming Language Forum
Exact — finance math that can't lose a cent
Hi! I'd like feedback on exact, a small set of Rust crates for financial math. Repo: GitHub - Wandalen/exact · GitHub The problem 0.1 + 0.2 isn't 0.3 with floats, and in a market those errors add up. Splitting $100 three ways leaves one cent, and someone has to decide who gets it. Prices, quantities and money are all "just numbers", so they get mixed up by mistake. What exact does Exact: stores whole cents/satoshis, so 0.1 + 0.2 is exactly 0.3. Safe: money, quantity and price are different ...

Hi! I'd like feedback on exact, a small set of Rust crates for financial math. Repo: GitHub - Wandalen/exact · GitHub The problem 0.1 + 0.2 isn't 0.3 with floats, and in a market…

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.