diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-13 16:16:01 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-01-13 16:16:01 +0100 |
| commit | 32c5ddd068755be2cfbb3a67ff97b115601b8ef4 (patch) | |
| tree | 62cad0ff3f5ee61ffdbd1c6c2616816f75355ac8 | |
| parent | e2a33c97339c821790e3f34593ce251476c3217e (diff) | |
use %g for printing
| -rw-r--r-- | src/CurveEditor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CurveEditor.cxx b/src/CurveEditor.cxx index 0d45bf7..c163812 100644 --- a/src/CurveEditor.cxx +++ b/src/CurveEditor.cxx @@ -75,9 +75,9 @@ CurveEditor::handle(int event) { return 1; case FL_RELEASE: marked_point = -1; - printf("%.3f,%.3f", X[0], Y[0]); + printf("%g,%g", X[0], Y[0]); for (int i = 1; i < n; i++) { - printf(";%.3f,%.3f", X[i], Y[i]); + printf(";%g,%g", X[i], Y[i]); } printf("\n"); fflush(stdout); |
