From 2c9ea51157be8ab333eb47132c1dce8366fb3bbb 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 a5f369a..d2f0132 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)) {