float x;
char *s = "7.2339 by these hilts or I am a villian else";
double atof(const char *string);
x=atof(s);
/* The %.2f formatting string limits the output to 2 decimal places */
lr_output_message("%.2f", x);
Note: The function atof, as with all functions that do not return an integer, must be explicitly declared in Vugen scripts.
注意:对于所有不能返回整型的函数,LR要求必须显示声明。
如:atof,atol,strtol,sin,cos