mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-16 18:51:53 +02:00
b2/dump.c (dump_rel): use %g also for tolerances in percent
This commit is contained in:
parent
a892b63d55
commit
6159bdfcdb
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user