4 ms·
If you can't get your pricing page right you have to wonder what else is a mess under the hood at Atlassian
by simonswords82 4y ago
If you can't get your pricing page right you have to wonder what else is a mess under the hood at Atlassian
- HelloNurse 4y agoUnder the hood they might prefer to do accounting in floating point. BigDecimal isn't meant for true programmers.
- cube00 4y agoMy life got infinitely easier once I learnt the financial world all use integers in cents to do their money calculations.
- quicklime 4y agoNot all, many situations make use of prices and calculations in the fractions of a cent. For example forex trading, or even gas stations.
- pixiemaster 4y agostill those probably are treated as Integer of a millionth cent
- singingfish 4y agoGenerally decicents (10 decicents = 1 cent) makes all normal currency calculations much easier/reliable. If you need lower resolution use millicents or microcents
- pedrovhb 4y agoIs that the case? I was under the impression that Decimals were used in financial contexts because (besides preventing floating point error) you can define how to handle things such as rounding behavior. For instance, at least in Python, 3//2 == 1 while -3//2 == -2; integer division is rounded down, and not towards zero as one may expect. Decimal lets you pick how you want that to go.
- vesinisa 4y agoWould someone please think of the performanz!
- raverbashing 4y agoAh yes when the system thinks you owe them 0.0000000001
- tgv 4y agoI'm not a big Atlassian hater, but the other day I spent 7 hours trying to fix an account migration error. Two users had access rights and all, but couldn't see any repository. I ended up deleting them and adding other accounts. It was ... odd. Oh, and there's that thing of joining an empty workspace. And that other thing. Yes, there's quite a bit wrong under the hood. Feels like teams working on small features that don't work well together (either the teams or the implementation).