>Am Sonntag, den 21.09.2014, 14:45 +0300 schrieb Nadav Har'El: >> Any ideas why I'm getting the wrong sequence? > >I don't think you are getting the wrong sequence, you are just >printing it wrong. "%ld" is for long double and not for double. > >Jens(I tried to subscribe to the mailing list but it didn't work, so please CC me with further responses).