It's indeed relative to cents in a sense, the idea is to force you to declare the precision of the monetary amount you're expressing.
You can see various interpretation of what "USD" means in the wild, as some APIs will happily parse USD 100 as $1.00 while some others might parse USD 100 as $100.00.
So we recommend this explicit [ASSET/SCALE AMOUNT] notation, where SCALE describes the negative power of ten to multiply the AMOUNT with to obtain the decimal value in the given ASSET.
It makes subsequent interaction with external systems much easier. You can read a bit more about it here [1].
Used to work at a payments company. Yes, you need to be *very* explicit in how you model currency amounts and precision. See also earlier post about Canadian rounding rules. Some of the "logic" is regulatory/compliance driven.
ref child post about stocks trading for 0.0001. Yes, those are real trades and (probably) fully legal etc, but I'm not sure the Fed recognizes currency amounts less than 1 US cent ($0.01), so the accounting rules and tax rules might not match expectations based on generalized floating point math.
Just to add to this, having also implemented a production payment system, we did the same thing. One needs to be very explicit about the scale and how it should be rounded and dealt with, and how to operate on two different scale systems. Quite a fun challenge, though I do not miss the edge cases.
Our system was a payment system for childcare management software, interfacing with banks and the government directly.
Mostly bank specific: the parsing and rounding approach wasn’t always consistent depending on what was being run. Still crazy to me that it was all CSV (with some special extra formatting/structure) via FTP to run transactions too at the time!
Not to speak for them, but I think you’ve understood the point exactly. You need to be able to support arbitrary precision, but that support needs to be intentional to avoid errors. And you have to record that decision somewhere if adapters are to correctly handle your outputs; why not in the unit name?
I remember religiously checking the hot deals forum then for insane dot com boom pricing choices (and errors). Fun times. A bunch of us moved to IRC but then Fatwallet sort of ruined things w their volume of users.
At least in the UK some enterprising soul has faikins on Amazon selling quite well. I got a couple just to stash if ever needed but for now daikins app is okay and works w home assistant. For now.
Yet I can't ever think of a Ryanair flight I've seen go out with a single spare seat. There are plenty enough people who don't mind abuse of the save a few cents. Good luck to them. Keeps them off my flights.
I think that for the average person, not represented on this website, it's actually very important to save money, and just suffer the cheapest option available.
I've taken maybe 16 ryanair flights this year (it's the only airline that does the city combination I want), and more than half of those flights have gone mostly empty. Those flights were also the cheapest. The ones that went full were the most expensive.
So feel free to add my anecdote to yours, and derive nothing statistically significant besides that I fly a route that is only intermittently popular.
..I'm also flexible on dates so I deliberately book cheaper days, which may make for self selection in this way.
16 flights this year already? I guess it really is dirt cheap to fly around Europe. For me, flying in Canada is expensive, and such an ordeal that it isn't something I could see myself doing that often.
The cheap trips clock in around 60 euros return. The expensive ones have clocked in around 100 euros return. Honestly, parking at the airport is more expensive than the cost of the flights most of the time.
I find that the best way to avoid abuse is to fly first class. Plus, it includes free checked bags, champagne, and a nice curtain to hide the view of the peasants.
These jokes are so tiresome. It was cute two decades ago but please let this stupid tradition die. It's become devoid of all humor and makes April 1 a hassle honestly.
I liked the part of their article where they complained they suffered “abuse” because of their dimwit activity, exactly as should all parties who perpetrate April 1 computer-guy “humor.”
I'd bet money in a forensic scenario they could look up the batch and then estimate the sequence and thus date of sale and pull the post office cctv footage.
Hahm. No, I did it myself. Your LLM detection circuitry needs to be upgraded, sir.
It's sad that people think anything a little 'different' is LLM. Almost exactly as if those takes like "this is LLM" is an LLM-brained take itself haha! :)