主页
C 语言
C stdlib atof() 函数
demo_ref_stdlib_atof2
运行 ❯
×
更改方向
保存代码
更改主题
#include
#include
int main() { char str[] = "The results are 4.25% above average"; float amount = atof(&str[16]); printf("%f", amount); return 0; }
4.250000