From 7aee25e649037cc31e7a8deff826de7b7fcfa155 Mon Sep 17 00:00:00 2001 From: oaq Date: Tue, 16 Jun 2026 19:29:22 +1000 Subject: [PATCH] convbin: round the rinex version after scaling Had seen 4.02 being truncate to 401 after scaling rather than 402. --- app/consapp/convbin/convbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/consapp/convbin/convbin.c b/app/consapp/convbin/convbin.c index 44aa24234..0e2ef6e31 100644 --- a/app/consapp/convbin/convbin.c +++ b/app/consapp/convbin/convbin.c @@ -518,7 +518,7 @@ static int cmdopts(int argc, char **argv, rnxopt_t *opt, char **ifile, } } else if (!strcmp(argv[i],"-v" )&&i+1rnxver=(int)(atof(argv[++i])*100.0); + opt->rnxver=(int)round(atof(argv[++i])*100.0); } else if (!strcmp(argv[i],"-od")) { opt->obstype|=OBSTYPE_DOP;