mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-01-18 08:41:08 +00:00
print float values to 1 dp
This commit is contained in:
parent
760924def8
commit
744f0d64df
@ -226,7 +226,7 @@ void parse_command(T_VBVMR_INTERFACE *vmr, char *command)
|
|||||||
switch (res.type)
|
switch (res.type)
|
||||||
{
|
{
|
||||||
case FLOAT_T:
|
case FLOAT_T:
|
||||||
printf("%.2f\n", res.val.f);
|
printf("%.1f\n", res.val.f);
|
||||||
break;
|
break;
|
||||||
case STRING_T:
|
case STRING_T:
|
||||||
puts(res.val.s);
|
puts(res.val.s);
|
||||||
|
Loading…
Reference in New Issue
Block a user