From 406650fdf9dcbe90a3763453235b79e6e7ed41dd Mon Sep 17 00:00:00 2001 From: DiSlord Live Date: Wed, 14 Dec 2022 21:37:20 +0300 Subject: [PATCH] Allow input ',' as float separator --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 3db6d22..a420f9b 100644 --- a/main.c +++ b/main.c @@ -529,7 +529,7 @@ my_atof(const char *p) p++; if (*p == 'k' || *p == 'M' || *p == 'G') p++; - if (*p == '.') { + if (*p == '.' || *p == ',') { float d = 1.0; p++; while (_isdigit((int)*p)) {