Click here to Skip to main content
15,901,035 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I despair at the lack of humour Pin
Mark_Wallace19-Dec-16 3:30
Mark_Wallace19-Dec-16 3:30 
GeneralRe: I despair at the lack of humour Pin
CDP180219-Dec-16 4:07
CDP180219-Dec-16 4:07 
GeneralRe: I despair at the lack of humour Pin
Harrison Pratt20-Dec-16 3:00
professionalHarrison Pratt20-Dec-16 3:00 
GeneralRe: I despair at the lack of humour Pin
lopatir19-Dec-16 1:31
lopatir19-Dec-16 1:31 
GeneralRe: I despair at the lack of humour Pin
CDP180219-Dec-16 1:40
CDP180219-Dec-16 1:40 
GeneralRe: I despair at the lack of humour Pin
Damian Alvarez Smiet19-Dec-16 21:18
Damian Alvarez Smiet19-Dec-16 21:18 
GeneralTypical of the Post Brexit / Trump era Pin
JohnLBevan19-Dec-16 22:11
professionalJohnLBevan19-Dec-16 22:11 
GeneralSeeing double, or doublethink Pin
Chris C-B18-Dec-16 23:52
Chris C-B18-Dec-16 23:52 
No, this is not a programming question, just a curiosity.

So here I am with some nice working codez in Windows, which give the answer I expect.
I have dumped these wonder codez into Android, and it gives me the answer I expect.

But only because I am not looking at maximum precision.
An interim value, which I just happened to check, differs somewhat:-

Android = 0.16993027262751734
Windows = 0.169930272651588

The only difference is using \ in Windows and Math.Floor in Java. Although the calculation is somewhat long and complex, nearly all of it was just copied/pasted. However, it seems I am only getting 10 digit precision, instead of the minimum of 13 I expected from double.

This error could easily result in my attack ships not being correctly positioned at the Lagrange point off Orion's shoulder...
GeneralRe: Seeing double, or doublethink Pin
CDP180219-Dec-16 0:04
CDP180219-Dec-16 0:04 
GeneralRe: Seeing double, or doublethink Pin
Chris C-B19-Dec-16 0:24
Chris C-B19-Dec-16 0:24 
GeneralRe: Seeing double, or doublethink Pin
CDP180219-Dec-16 0:35
CDP180219-Dec-16 0:35 
GeneralRe: Seeing double, or doublethink Pin
Chris C-B19-Dec-16 1:03
Chris C-B19-Dec-16 1:03 
GeneralRe: Seeing double, or doublethink Pin
CDP180219-Dec-16 1:06
CDP180219-Dec-16 1:06 
GeneralRe: Seeing double, or doublethink Pin
harold aptroot19-Dec-16 0:06
harold aptroot19-Dec-16 0:06 
GeneralRe: Seeing double, or doublethink Pin
Chris C-B19-Dec-16 0:29
Chris C-B19-Dec-16 0:29 
GeneralRe: Seeing double, or doublethink Pin
harold aptroot19-Dec-16 1:18
harold aptroot19-Dec-16 1:18 
GeneralRe: Seeing double, or doublethink Pin
OriginalGriff19-Dec-16 0:07
mveOriginalGriff19-Dec-16 0:07 
GeneralRe: Seeing double, or doublethink Pin
CDP180219-Dec-16 0:10
CDP180219-Dec-16 0:10 
GeneralRe: Seeing double, or doublethink Pin
OriginalGriff19-Dec-16 0:16
mveOriginalGriff19-Dec-16 0:16 
GeneralRe: Seeing double, or doublethink Pin
  Forogar  19-Dec-16 3:27
professional  Forogar  19-Dec-16 3:27 
GeneralRe: Seeing double, or doublethink Pin
Jochen Arndt19-Dec-16 0:33
professionalJochen Arndt19-Dec-16 0:33 
GeneralRe: Seeing double, or doublethink Pin
Chris C-B19-Dec-16 0:51
Chris C-B19-Dec-16 0:51 
GeneralRe: Seeing double, or doublethink Pin
Jochen Arndt19-Dec-16 0:59
professionalJochen Arndt19-Dec-16 0:59 
GeneralRe: Seeing double, or doublethink Pin
Chris C-B19-Dec-16 1:21
Chris C-B19-Dec-16 1:21 
GeneralRe: Seeing double, or doublethink Pin
Jochen Arndt19-Dec-16 1:27
professionalJochen Arndt19-Dec-16 1:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   499 votes