12,350,134 members (26,424 online)

# Welcome to the Lounge

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.

 Re: Malaysian Airlines have lost another plane glennPattonPUB18-Jul-14 0:18 glennPattonPUB 18-Jul-14 0:18
 Re: Malaysian Airlines have lost another plane JimmyRopes18-Jul-14 1:23 JimmyRopes 18-Jul-14 1:23
 Re: Malaysian Airlines have lost another plane glennPattonPUB18-Jul-14 2:00 glennPattonPUB 18-Jul-14 2:00
 Re: Malaysian Airlines have lost another plane JimmyRopes18-Jul-14 2:44 JimmyRopes 18-Jul-14 2:44
 Re: Malaysian Airlines have lost another plane JimmyRopes18-Jul-14 1:22 JimmyRopes 18-Jul-14 1:22
 APOD mark merrens17-Jul-14 5:57 mark merrens 17-Jul-14 5:57
 Re: APOD glennPattonPUB17-Jul-14 6:03 glennPattonPUB 17-Jul-14 6:03
 You wanna see a real calc bug? newton.saber17-Jul-14 5:42 newton.saber 17-Jul-14 5:42
 Four web browsers(opera, safari, firefox, chrome) reports the answer to the following calculation *incorrectly*: ((54/31)+140) Those 4 browsers return the value : 141.74193548387098 IE reports the value of : 141.74193548387097 Note:The two leading #s in the next example are just for alignment. if you calculate 54/31 using javascript and browser you get: ##1.7419354838709677 The second one calcs the same equation and simply adds 140 ((54/31)+140) -- to change precision. 141.74193548387098 Notice the digit after the last 9 in the sequence. The rounded up value should be a 7 (round up from 6), but it is reported as an 8 in every browser except IE. You can also compare the value to Windows Calculator for 54/31. Windows calculator gives : 1.7419354838709677419354838709677 Interesting? Here's the HTML / JavaScript so you can copy / paste and try in all browsers:
Clicking the [Calc] button runs two calculations and shows the result on this page. First calc is: (54/31)
Note:The two leading #s are just for alignment.

The second one calcs the same equation and simply adds 140 ((54/31)+140) -- to change precision.
 Re: You wanna see a real calc bug? BobJanova17-Jul-14 6:03 BobJanova 17-Jul-14 6:03
 Re: You wanna see a real calc bug? harold aptroot17-Jul-14 6:10 harold aptroot 17-Jul-14 6:10
 Re: You wanna see a real calc bug? newton.saber17-Jul-14 7:13 newton.saber 17-Jul-14 7:13
 Re: You wanna see a real calc bug? harold aptroot17-Jul-14 7:21 harold aptroot 17-Jul-14 7:21
 Re: You wanna see a real calc bug? newton.saber17-Jul-14 8:21 newton.saber 17-Jul-14 8:21
 Re: You wanna see a real calc bug? Corporal Agarn17-Jul-14 6:26 Corporal Agarn 17-Jul-14 6:26
 Re: You wanna see a real calc bug? Tim Carmichael17-Jul-14 7:16 Tim Carmichael 17-Jul-14 7:16
 Re: You wanna see a real calc bug? newton.saber17-Jul-14 8:19 newton.saber 17-Jul-14 8:19
 Re: You wanna see a real calc bug? thrakazog17-Jul-14 7:25 thrakazog 17-Jul-14 7:25
 Re: You wanna see a real calc bug? John Simmons / outlaw programmer17-Jul-14 8:48 John Simmons / outlaw programmer 17-Jul-14 8:48
 Re: You wanna see a real calc bug? newton.saber17-Jul-14 9:38 newton.saber 17-Jul-14 9:38
 Re: You wanna see a real calc bug? John Simmons / outlaw programmer17-Jul-14 9:57 John Simmons / outlaw programmer 17-Jul-14 9:57
 Re: You wanna see a real calc bug? newton.saber17-Jul-14 10:18 newton.saber 17-Jul-14 10:18
 Re: You wanna see a real calc bug? Bassam Abdul-Baki18-Jul-14 0:47 Bassam Abdul-Baki 18-Jul-14 0:47
 Re: You wanna see a real calc bug? Fueled By Caffeine18-Jul-14 0:37 Fueled By Caffeine 18-Jul-14 0:37
 Re: You wanna see a real calc bug? newton.saber18-Jul-14 2:21 newton.saber 18-Jul-14 2:21
 Well, not amazing, just amusing... mark merrens17-Jul-14 5:17 mark merrens 17-Jul-14 5:17
 Last Visit: 31-Dec-99 18:00     Last Update: 25-Jun-16 22:28 Refresh « Prev1...5497549854995500550155025503550455055506 Next »