1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 08:02:04 +02:00

b2/dump.c (dump_rel): use %g also for tolerances in percent

This commit is contained in:
Werner Almesberger 2012-05-31 15:47:35 -03:00
parent a892b63d55
commit 6159bdfcdb

View File

@ -50,7 +50,7 @@ void dump_abs(FILE *file, const struct format *fmt, const struct value *v)
void dump_rel(FILE *file, const struct format *fmt, const struct value *v)
{
if (v->u.rel.fract)
fprintf(file, "-%f/+%f%%",
fprintf(file, "-%g/+%g%%",
v->u.rel.minus*100, v->u.rel.plus*100);
else
fprintf(file, "-%g/+%g%s",