4 ms·
Some people, when they have a problem, think, “I know, I’ll use floating point.” Now they have 1.9999998 problems.
by captaincrowbar 3y ago
Some people, when they have a problem, think, “I know, I’ll use floating point.” Now they have 1.9999998 problems.
- deleted 3y ago[deleted]
- markab21 3y agoI bet you have been waiting years to pull that one out of your pocket. Well played sir! Nice shot man! :D
- recursive 3y agoSome numbers can be precisely represented using IEEE-754 floats. Two (2) is one of them.
- beezle 3y agoFunny story from today while briefly on hold for a support rep. Got the standard 'we'll call you back if you want blah blah' followed by - I kid not - "you're estimated wait time for the next representative is 0.58333333 minutes" At the end of the call I suggested if she can log a problem for IT to include this and that they should either round up or use seconds (I suspect it was 35 seconds)
- __s 3y agoWe had this issue with time estimates at work. JIRA field was minutes, which got printed as fractional hours elsewhere. Not good if you put 20 minutes. So suggestion was to use 15 minute intervals, but I pointed out that as long as you used multiples of 3 you'd get 2 digit results, so I'd round to multiples of 3 instead
- eru 3y agoThose are ridiculously fine grained tasks (or very precise estimations)? Anything that takes less than an eg half an hour, I would probably just do, instead of making a ticket and an estimation. But I guess some companies are more bureaucratic than others?