From 744f0d64df373545add94d49d3f22aa6c3d176d2 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 27 Jun 2024 02:00:17 +0100 Subject: [PATCH] print float values to 1 dp --- src/vmrcli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmrcli.c b/src/vmrcli.c index d14c0d0..dd05448 100644 --- a/src/vmrcli.c +++ b/src/vmrcli.c @@ -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);