Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use printf format %f instead of %e for this example.
[simgrid.git] / teshsuite / xbt / graphxml_usage / graphxml_usage.c
index 7c4fe73..2a1f6f0 100644 (file)
@@ -80,7 +80,7 @@ void test(char *graph_file)
     buf = xbt_new0(char, n * 20);
     for (i = 0; i < n; i++) {
       for (j = 0; j < n; j++) {
-        sprintf(buf + strlen(buf), "%e\t", adj[i * n + j]);
+        sprintf(buf + strlen(buf), "%6.3f\t", adj[i * n + j]);
       }
       XBT_INFO("%s", buf);
       buf[0] = '\000';