Womble

joined 2 months ago
[–] Womble@piefed.world 2 points 3 days ago

Look she's been made a peer of the realm, it is unacceptable to attempt to punish her for committing crimes. What's more its discriminatory as the state would never try to prosecute old money peers!

[–] Womble@piefed.world 0 points 5 days ago

TIL having an opinion on what games are bad is "elitist weird shit"

[–] Womble@piefed.world 0 points 1 week ago

No you spouted some stuff about "trust me I've seen it" (almost certainly relating to using single floats) then an irrelevant tangent about how ten doesnt divde cleanly into three and how thats a problem for floats, when you have exactly the same problem with fixed point/integer division.

Do you have an actual example of where double precission floats would cause an issue? Preferably an example that could be run to demonstrate it.

[–] Womble@piefed.world 3 points 1 week ago (2 children)

And so instead of explain why and clarify any misunderstanding you chose to snarkily insult my intelligence, very mature.

[–] Womble@piefed.world 2 points 1 week ago* (last edited 1 week ago) (4 children)

I fail to see a difference there, 10.0/3 = 3.33333333333 which you round down to 3.33 (or whatever fraction of a cent you are using) as you say for all accounts then have to deal with the leftovers, if you are using a fixed decimal as the article sugests you get the same issue, if you are using integer fractions of a cent, say milicents you get 1000000/3 = 333333 which gives you the exact same rounding error.

This isnt a problem with the representation of numbers its trying to split a quantity into unequal parts using division. (And it should be noted the double is giving the most accurate representation of 10/3 dollars here, and so would be most accurate if this operation was in the middle of a series of calcuations rather than about to be immediately moving money).

As I said before, doubles probably arent the best way to handle money if you are dealing with high volumes of or complex transactions, but they are not the waiting disaster that single floats are and using a double representation then converting to whole cents when you need to actually move real money (like a sale) is fine.

[–] Womble@piefed.world -3 points 1 week ago* (last edited 1 week ago) (11 children)

You are underestimating how precice doubles are. Summing up one million doubles randomly selected from 0 to one trillion only gives a cumulative rounding error of ~60, that coud be one million transactions with 0-one billion dollars with 0.1 cent resolution and ending up off by a total of 6 cents. Actually it would be better than that as you could scale it to something like thousands or millions of dollars to keep you number ranger closer to 1.

Sure if you are doing very high volumes you probably dont want to do it, but for a lot of simple cases doubles are completely fine.

Edit: yeah using the same million random numbers but dividing them all by 1000 before summing (so working in kilodollars rather than dollars) gave perfect accuracy, no rounding errors at all after one million 1e-3 to 1e9 double additions.

[–] Womble@piefed.world 9 points 1 week ago* (last edited 1 week ago) (18 children)

Single floats sure, but doubles give plenty of accuracy unless you absolutely need zero error.

For example geting 1000 random 12 digit ints, multiplying them by 1e9 as floats, doing pairwise differences between them and summing the answers and dividing by 1e9 to get back to the ints gives a cumulative error of 1 in 10^16. assuming your original value was in dollars thats roughly 0.001cent in a billion dollar total error. That's going deliberately out of the way to make transactions as perverse as possible.

[–] Womble@piefed.world 1 points 2 weeks ago

Well for a start felonies arent a thing in the UK, and havent been for 60 years, but also if it is genuinely due to error and HMRC dont think its been done deliberately as tax evasion then yes you can just self report and pay the tax owed plus late fees.

[–] Womble@piefed.world 3 points 2 weeks ago

You recharge your storage device (a metal tank) by pouring in more liquid over 30 seconds. That ease of use combined with how energy dense oil derivatives are is such a massive benefit for them.

The problem with fossil fuels is that they are slowly choking our planet, except for that they are phenomenal energy sources on who's backs the modern world was built. That is why it is so hard for us to transition away from them.

[–] Womble@piefed.world 2 points 2 weeks ago

Its not binary but it is strongly clustered into two groups with a small number of outliers from those groups.

[–] Womble@piefed.world 5 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Corbyn in the UK is the main counterexample I can think of, but even then that was for less than five years in opposition and with the entire political and media establishment conspiring to bring him down, including the right of his own party (and in fairness, he repeatedly shot himself in the foot and handed them easy wins).

[–] Womble@piefed.world 3 points 2 weeks ago

Racsism is likely part of it, but the real value is in having a solid ally that can be used as a base to project power across the largest oil producing region in the world.

How long Israel remains seen as a solid ally given their recent unhinged and mask off behaviour remains to be seen. To me it does feel like there is a sea change in opinion on them, both from everyday people and from politicos.

 

An interesting articles discusssing the people behind Labour's relentless concessions to the right. I think the gender aspect feels forced and unconvincing but the rest of it is an interesting read.

view more: next ›