austinfloyd,

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

thepianistfroggollum,

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

xpinchx,

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

nogrub,

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

afraid_of_zombies,

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,

“%0.0f”

macrocephalic,

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,

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,

Penmanship counts

ChicoSuave,

Blame the font

austin,

Looks like a floating point error

GigaWerts, (edited )

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

AmidFuror,

But then the score should be 126.666666666667%.

AeroLemming,

It’s so weird that they would do 1/19*19 instead of 19/19.

FlyingSquid,
@FlyingSquid@lemmy.world avatar

Computer: “You still suck, puny fleshbag.”

halvar,

well 0.9999… is actually 1 because


<span style="color:#323232;">x = 0.9999...
</span><span style="color:#323232;">
</span><span style="color:#323232;">10x = 9.9999...
</span><span style="color:#323232;">
</span><span style="color:#323232;">10x (9.9999...) - x (0.9999...) = 9
</span><span style="color:#323232;">
</span><span style="color:#323232;">9x = 9
</span><span style="color:#323232;">
</span><span style="color:#323232;">x = 1
</span><span style="color:#323232;">
</span><span style="color:#323232;">so 0.9999... is 1
</span>
expatriado,

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

halvar,

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

exscape,
@exscape@kbin.social avatar

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

halvar,

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

Aux,

0.999… is lim(1), not 1.

cheery_coffee,

No, .9999… is not a limit, it’s a notation like using the infinity symbol. It is undisputedly equal to 1. Though you could represent it as a limit, that limit would also be the value of 1.

.1111… Uses the same concept to express a real number and isn’t a limit.

Aux,

What?

thedoodlenoodle,

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

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

RedditWanderer,

This is muuuch better demonstrated by

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

“Repeating” matters in approximations

AllNewTypeFace,
@AllNewTypeFace@leminal.space avatar

Presumably because only God can be perfect

candyman337,

Is that actually mathematically the same number

affiliate,

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,

Thank you for the very informative comment and article :)

momocchi,

19.0000000000f/19.0000000000f

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines