author | Sebastian Harl <sh@tokkee.org> | |
Sun, 5 Oct 2014 18:39:33 +0000 (20:39 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 5 Oct 2014 18:39:33 +0000 (20:39 +0200) | ||
commit | 2486840818ddbb5e8a54f2ba4584b98520ea221a | |
tree | 76fb330227567cd7150b8b1de8ea3544a1808965 | tree | snapshot |
parent | 7649cd039c4ca73698403baf1bc6c3cad4af8301 | commit | diff |
data: Use %g format when formatting decimal numbers.
This is much better human-readable and we don't need an exact representation.
In fact, given that a datum's string value is used when comparing attribute
values, the human readable format is much better suited given that chances are
higher that users will enter numbers in the same format (but it's still just a
best guess kind of thing).
This is much better human-readable and we don't need an exact representation.
In fact, given that a datum's string value is used when comparing attribute
values, the human readable format is much better suited given that chances are
higher that users will enter numbers in the same format (but it's still just a
best guess kind of thing).
src/core/data.c | diff | blob | history | |
t/unit/core/data_test.c | diff | blob | history |