-rw-r--r-- | agg-plot/units.cpp | 2 |
diff --git a/agg-plot/units.cpp b/agg-plot/units.cpp index c3a6b1d8..8113c153 100644 --- a/agg-plot/units.cpp +++ b/agg-plot/units.cpp @@ -65,7 +65,7 @@ void units::mark_label (char *lab, unsigned size, int mark) const if (nb_decimals == 0) { - snprintf (lab, size, "%d", int(mark * dmajor)); + snprintf (lab, size, "%.0f", mark * dmajor); lab[size-1] = '0円'; } else |