Failed to parse Float from string using playdate->system->parseString

,

Seems like parseString fails to parse floats

i32 a   = 0;
f32 b   = 0;
f64 c   = 0;
i32 res = 0;
res     = PD->system->parseString("990", "%d", &a);
PD->system->logToConsole("%d = %d", a, res);
res = PD->system->parseString("1123.0", "%f", &b);
PD->system->logToConsole("%f = %d", (double)b, res);
res = PD->system->parseString("-123.0", "%lf", &c);
PD->system->logToConsole("%f = %d", c, res);

get's the following result:

990 = 1
0.000000 = 0
0.000000 = 0
1 Like