Add decimal output

This commit is contained in:
Michaelangel007 2017-04-17 06:56:23 -07:00
parent 27cd60c59b
commit 8b364f3e7f
1 changed files with 3 additions and 1 deletions

4
freq.c
View File

@ -340,12 +340,14 @@ if( is_asm )
, actual
);
else
printf( "%c%d%c %8.3f Hz -> $%04X ~%8.3f Hz (%5.3f %%)\n"
printf( "%c%d%c %8.3f Hz -> $%04X (%3d %3d) ~%8.3f Hz (%5.3f %%)\n"
, names[ half_step ][0]
, octave + (half_step > 2)
, names[ half_step ][1]
, actual
, tone
, (tone >> 8) & 0xFF
, (tone >> 0) & 0xFF
, measure
, rel_err
);