A problem occurred while using %lf in sprintf.
char ary[20];
double d = 0.1235f;
sprintf(ary, "%lf", d);
d : 0.12349999696016312
[result]
ary : ""
I can't find the reason why.
A problem occurred while using %lf in sprintf.
char ary[20];
double d = 0.1235f;
sprintf(ary, "%lf", d);
d : 0.12349999696016312
[result]
ary : ""
I can't find the reason why.
Copyright © 2021 Jogjafile Inc.