SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
GamerBoy705@lemmy.worldM to Software Gore@lemmy.worldEnglish · 2 years ago

Not good enough for 100%

pxscdn.com

message-square
28
fedilink
543

Not good enough for 100%

pxscdn.com

GamerBoy705@lemmy.worldM to Software Gore@lemmy.worldEnglish · 2 years ago
message-square
28
fedilink
alert-triangle
You must log in or register to comment.
  • halvar@lemm.ee
    link
    fedilink
    arrow-up
    51
    arrow-down
    5
    ·
    edit-2
    2 years ago

    well 0.9999… is actually 1 because

    x = 0.9999...
    
    10x = 9.9999...
    
    10x (9.9999...) - x (0.9999...) = 9
    
    9x = 9
    
    x = 1
    
    so 0.9999... is 1
    
    • RedditWanderer@lemmy.world
      link
      fedilink
      arrow-up
      45
      ·
      2 years ago

      This is muuuch better demonstrated by

      1/3 = .33… 2/3 = .66… 3/3 = 0.99…

      “Repeating” matters in approximations

    • exscape@kbin.social
      link
      fedilink
      arrow-up
      29
      arrow-down
      2
      ·
      2 years ago

      Yes, but 0.99999999999999999999 isn’t 0.999… and therefore not 1, so it’s still wrong.

      • halvar@lemm.ee
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        2 years ago

        The software is wrong yes. I just had to share this information.

    • expatriado@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      2 years ago

      your 4th line reads as 10x^2 - x^2 = 9

      • halvar@lemm.ee
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        2 years ago

        You know I didn’t mean it like that, but you are technically right.

    • thedoodlenoodle
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      First thing that came to mind was this video by SingingBanana.

      Great maths channel and he is a frequently on numberphile as well.

    • Aux@lemmy.world
      link
      fedilink
      arrow-up
      3
      arrow-down
      11
      ·
      2 years ago

      0.999… is lim(1), not 1.

      • cheery_coffee@lemmy.ca
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        2 years ago

        deleted by creator

        • Aux@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          2 years ago

          What?

      • affiliate@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        1 is a constant so lim(1) = 1

  • nogrub@lemmy.world
    link
    fedilink
    arrow-up
    41
    ·
    2 years ago

    it’s almost like computers are not that accurate when calculating floating point numbers

    • afraid_of_zombies@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      About a year ago I ended up with a floating point value that was something like 1.0000000000078 when it should have been 1. Tore my hair out for hours trying to get the piece of crap embedded vendor locked device to just make it 1.

      • cheery_coffee@lemmy.ca
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        1
        ·
        edit-2
        2 years ago

        deleted by creator

    • macrocephalic@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      It’s almost like some useless person created a variable with a distinct set unlikely to be higher than the hundreds as a floating point - when it obviously should have been an int.

      • WhiskyTangoFoxtrot@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        2 years ago

        Nah, it makes sense to use a floating point number here, since unless the test is marked out of a factor of 100 then there will likely be a fractional value as the final percentage. The mistake was not rounding the final displayed value.

  • Slatlun@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    2 years ago

    Penmanship counts

    • ChicoSuave@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Blame the font

  • GigaWerts@lemmy.eco.br
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    2 years ago

    The issue here lies in how it calculates each correct answer value, which is set at 1/15. This approach introduces an approximation error. When you sum all these values together, the total doesn’t quite reach 1.

    edit: It’s actually 1/19 for each question

    (1/19)*19 = 0,9999999991

    • AeroLemming@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      9 months ago

      deleted by creator

    • AmidFuror@kbin.social
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      2 years ago

      But then the score should be 126.666666666667%.

  • austin@aussie.zone
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    2 years ago

    Looks like a floating point error

  • xpinchx@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    2 years ago

    Heh, our WMS does this. Picking through a batch and we go from 19% complete to 22.573729384674829273747% complete.

  • thepianistfroggollum@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 years ago

    Just be glad you didn’t get an, “100% required to pass” error

  • momocchi@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 years ago

    19.0000000000f/19.0000000000f

  • Flying Squid@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    Computer: “You still suck, puny fleshbag.”

  • AllNewTypeFace@leminal.space
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    2 years ago

    Presumably because only God can be perfect

  • candyman337@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    2 years ago

    Is that actually mathematically the same number

    • affiliate@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      edit-2
      2 years ago

      the pedantic answer is that, from a rigorous perspective, 99.9999999999999% isn’t the same as 100% because the decimals don’t repeat forever. but a more practical answer would be that they are the same number. because of how computers (usually) round numbers, the stuff showing up after the 8th decimal place is (usually) junk that can be ignored.

      an interesting example of this idea in practice has to do with the irrational number π, which nasa only approximates to 15 decimal places because that’s more than enough for most of the calculations they do (the linked page gives a better and more detailed explanation).

      • candyman337@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        2 years ago

        Thank you for the very informative comment and article :)

  • fakeaustinfloyd@ttrpg.network
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Welcome to the secret robot Internet https://www.smbc-comics.com/comic/2013-06-05

Software Gore@lemmy.world

softwaregore@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !softwaregore@lemmy.world

Welcome to /c/SoftwareGore!


This is a community where you can poke fun at nasty software. This community is your go-to destination to look at the most cringe-worthy and facepalm-inducing moments of software gone wrong. Whether it’s a user interface that defies all logic, a crash that leaves you in disbelief, silly bugs or glitches that make you go crazy, or an error message that feels like it was written by an unpaid intern, this is the place to see them all!

Remember to read the rules before you make a post or comment!


Community Rules - Click to expand

These rules are subject to change at any time with or without prior notice. (last updated: 7th December 2023 - Introduction of Rule 11 with one sub-rule prohibiting posting of AI content)


  1. This community is a part of the Lemmy.world instance. You must follow its Code of Conduct (https://mastodon.world/about).
  2. Please keep all discussions in English. This makes communication and moderation much easier.
  3. Only post content that’s appropriate to this community. Inappropriate posts will be removed.
  4. NSFW content of any kind is not allowed in this community.
  5. Do not create duplicate posts or comments. Such duplicated content will be removed. This also includes spamming.
  6. Do not repost media that has already been posted in the last 30 days. Such reposts will be deleted. Non-original content and reposts from external websites are allowed.
  7. Absolutely no discussion regarding politics are allowed. There are plenty of other places to voice your opinions, but fights regarding your political opinion is the last thing needed in this community.
  8. Keep all discussions civil and lighthearted.
    • Do not promote harmful activities.
    • Don’t be a bigot.
    • Hate speech, harassment or discrimination based on one’s race, ethnicity, gender, sexuality, religion, beliefs or any other identity is strictly disallowed. Everyone is welcome and encouraged to discuss in this community.
  9. The moderators retain the right to remove any post or comment and ban users/bots that do not necessarily violate these rules if deemed necessary.
  10. At last, use common sense. If you think you shouldn’t say something to a person in real life, then don’t say it here.
  11. Community specific rules:
    • Posts that contain any AI-related content as the main focus (for example: AI “hallucinations”, repeated words or phrases, different than expected responses, etc.) will be removed. (polled)

You should also check out these awesome communities!

  • Tech Support: For all your tech support needs! (partnered)
  • Hardware Gore: Same as Software Gore, but for broken hardware.
  • DiWHY - Questioning why some things exist…
  • Perfect Fit: For things that perfectly and satisfyingly fit into each other!

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 50 users / week
  • 885 users / month
  • 2.17K users / 6 months
  • 66 local subscribers
  • 5.84K subscribers
  • 264 Posts
  • 2.4K Comments
  • Modlog
  • mods:
  • GamerBoy705@lemmy.world
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org