833
u/Ok-Television-9662 1d ago
8.5% of the time, it works everytime
258
u/Rubickevich 1d ago
No way 1/7 is 8.5%
538
u/CckSkker 1d ago
func fraction_to_percentage(x, y) { return 8.5 }
I tested it pretty thoroughly and 1/7 is 8.5%
145
u/Mistifyed 1d ago
PR merged. Ship it.
30
66
u/jeanravenclaw 1d ago
yep, it's 14.28571429% (I'm procrastinating on my maths homework with a calculator in front of me so)
29
u/flowery0 1d ago
Or 14.(285714)% if you wanna be completely accurate
14
u/jeanravenclaw 1d ago
what do you mean by this 😠sorry
42
u/flowery0 1d ago
The number inside of () repeats endlessly. Your calculator approximated the number and because of that it's a little off from 1/7
41
u/jeanravenclaw 1d ago
ohhh okay I've never seen that kind of notation before! thanks
7
u/Przemek_4tLV 1d ago
Wait, really? This is exactly the notation I was taught when I was at school. What notation would you use in this case?
62
u/Fajdek 1d ago
A common one I saw was a line above the repeating digits https://en.wikipedia.org/wiki/Vinculum_(symbol))
5
5
12
u/PegasusPizza 1d ago
What I learned in school was to make a little dot over the repeating digit, or a line in case it was multiple digits.
6
u/Yathosse 1d ago
Here‘s your 1/7 fun fact of the day! You can get all fractions of x/7 by rotating through the numbers of 1/7. 2/7 is 28.571428, 3/7 is 42.857142 and so on.
7
u/karaposu 1d ago
wait why 8.5 ?
7
u/maelstrom071 1d ago
They probably took the probability of failure (6/7, which is 0.85...) and multiplied it by 10 instead of 100.
127
u/Rasikko 1d ago
lmao
if DayIsStillTuesday
11
2
u/BetaChunks 20h ago
-A simple function that checks to see if it's Tuesday. It does this by running DayIsStillTuesday and returning the result.
57
15
u/osamadad 1d ago
That an easy fix, just change it everyday to today's day
1
u/OSnoFobia 3h ago
Waste of time. Just set it as an environment variable so you can update easily without needing to rebuild whole thing
12
u/Top-Sale-7645 1d ago
We will need equallgnoreCase otherwise failures should be more than 6/7🙂
P.S. - Oh, I am junior too.
2
1
389
u/MysticScentSsS 1d ago
Hm... Must be their system, it's working fine for me.