Allow input ',' as float separator

pull/52/head
DiSlord Live 3 years ago
parent fb4c9c5690
commit 2c9ea51157

@ -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)) {

Loading…
Cancel
Save

Powered by TurnKey Linux.