Mercurial > hg > fxanalyse
comparison FXAnalyse.c @ 187:a5c70eae1e0b
Change data logging to 16 digits precision
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 24 Feb 2014 15:17:53 +0100 |
parents | 89e092681ba7 |
children | 87dae6d62a61 |
comparison
equal
deleted
inserted
replaced
186:89e092681ba7 | 187:a5c70eae1e0b |
---|---|
317 // timestamp | 317 // timestamp |
318 len = snprintf(line, sizeof(line), "%s\t%.3f", timestr, utc); | 318 len = snprintf(line, sizeof(line), "%s\t%.3f", timestr, utc); |
319 | 319 |
320 // data channels | 320 // data channels |
321 for (i = 0; i < nchan; i++) | 321 for (i = 0; i < nchan; i++) |
322 len += snprintf(line + len, sizeof(line) - len, "\t%.3f", v[i]); | 322 len += snprintf(line + len, sizeof(line) - len, "\t%.16e", v[i]); |
323 | 323 |
324 // newline | 324 // newline |
325 line[len++] = '\r'; | 325 line[len++] = '\r'; |
326 line[len++] = '\n'; | 326 line[len++] = '\n'; |
327 | 327 |