gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot')
-rw-r--r--agg-plot/units.cpp 2
1 files changed, 1 insertions, 1 deletions
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
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月16日 15:12:23 +0000

AltStyle によって変換されたページ (->オリジナル) /