These are chat archives for marvell-iot/aws_starter_sdk
for question (2), I've found the workaround. wmstdio.h have implied that some compilers have a problem interpreting %f. So we need use wm_int_part_of(x), and wm_frac_part_of(float x, short precision) these 2 ftoi-like functions.
in my code example above, need to be modified to:
float a=1.41421; wmprintf("a = %d.%d", wm_int_part_of(a), wm_frac_part_of(a, 3));
the result would be:
a = 1.414