Hello, 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 -- :: INRIA Nancy Grand Est ::: AlGorille ::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::