News for hackers. Stuff that matters.
Re:FloatCompMandelbrot: What impact does floating point prec... by captaincrowbar on Tuesday March 12, 2024 @05:06PM (#39684957)
Some people, when they have a problem, think, “I know, I’ll use floating point.” Now they have 1.9999998 problems.
Re:FloatCompMandelbrot: What impact does floating point prec... by recursive on Tuesday March 12, 2024 @07:58PM (#39686388)
Some numbers can be precisely represented using IEEE-754 floats. Two (2) is one of them.
Re:FloatCompMandelbrot: What impact does floating point prec... by eru on Wednesday March 13, 2024 @05:43AM (#39689606)
Yes, but not every calculation that yields 2, also yields 2 when performed in IEEE-754 floats.
Re:FloatCompMandelbrot: What impact does floating point prec... by recursive on Wednesday March 13, 2024 @12:04PM (#39693204)
Yes, but any calculation that you'd use to count whole units things, like reasons, that would result in 2 would yield precisely 2.
Re:FloatCompMandelbrot: What impact does floating point prec... by eru on Friday March 15, 2024 @04:08AM (#39713187)
Yes. The quip was only a silly joke.
Re:FloatCompMandelbrot: What impact does floating point prec... by markab21 on Tuesday March 12, 2024 @06:49PM (#39685865)
I bet you have been waiting years to pull that one out of your pocket.

Well played sir! Nice shot man! :D

Re:FloatCompMandelbrot: What impact does floating point prec... by beezle on Tuesday March 12, 2024 @08:59PM (#39686847)
Funny 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)

Re:FloatCompMandelbrot: What impact does floating point prec... by __s on Wednesday March 13, 2024 @07:01AM (#39690038)
We 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
Re:FloatCompMandelbrot: What impact does floating point prec... by eru on Friday March 15, 2024 @04:31AM (#39713337)
Those 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?