print float values to 1 dp

This commit is contained in:
onyx-and-iris 2024-06-27 02:00:17 +01:00
parent 760924def8
commit 744f0d64df

View File

@ -226,7 +226,7 @@ void parse_command(T_VBVMR_INTERFACE *vmr, char *command)
switch (res.type)
{
case FLOAT_T:
printf("%.2f\n", res.val.f);
printf("%.1f\n", res.val.f);
break;
case STRING_T:
puts(res.val.s);