• 1 Post
  • 74 Comments
Joined 3 months ago
cake
Cake day: July 10th, 2025

help-circle


  • 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.



  • 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.


  • 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.


  • 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.





  • 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.


  • The post I was replying to was saying

    people will stop using it for all the things they’re currently using it for

    They will when AI companies can no longer afford to eat their own costs and start charging users a non-subsidized price.

    i.e. people will stop using AI when user have to pay the “real” price (what this is is left unspecified and an exercise to the reader to figure out). My point was that even if the AI price from those provided to infinity AI usage wouldnt drop to zero like they imply.



  • Quantum entangled communications that are impossible to evesdrop on exist now, cloud computing is the money machine that allows Amazon to keep expanding, virtualisation is used by effectively every company using computers at scale. (blockchain, I’ll admit, was pretty much all hype and vapourware other than laundering drug money and allowing speculation)

    Just because there is marketing hype around a term doesnt mean there isnt anything of value there.



  • Even calling it tax evasion is a stretch, she had a complicated situation involving a trust set up for the house she had with her ex to insure her severely disabled son would be taken care of, then she claimed her new flat was her primary residence leading to a lower rate of stamp duty. She got some advice that said it was ok but was then told she should seek specialist legal advice to check that which she didnt and now has to pay back 40k.

    Its not good, and she was right to step down, especially as housing minister, but its hardly a grievous sin.


  • You are misunderstanding their point. “Good reason” doesnt mean ethically good, it means there is a sound logical connection between the action they are taking and the outcome they want to happen. In that case Microsoft does have good reason to push trusted hardware, in the same way as a bank robber has good reason to buy a face mask.


  • If people use guns to kill themselves, will they stop killing themselves if we take the guns away? Maybe some will, if the alternatives take so much more time, but the impact won’t be massive.

    Generally yes, Suicide tends to be a spur of the moment decision to go through with it and having immediate access to a very easy, very lethal method increases the rate significantly. There have been numerous studies that show that putting up barriers at bridges etc that are commonly jumped from dreastically reduces the suicide rate from them without raising it elsewhere e.g.



  • Womble@piefed.worldtoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 month ago

    I’m not defending it or attacking it, mearly saying that

    They probably did multiple queries per day at the beginning, found out it isn’t worth it and stopped using it …

    Isnt supported by the information given. The GP gave a story they made up about how usage would be falling based on nothing at all, I gave two other alternate stories about how it could be either rising in usage or remaining flat to demonstrate that we cannot say anything about rate of change from a single average.