我的地盘我做主!
博客:http://tester2test.cnblogs.com/
msn:win_soft@163.com
loadrunner的atof函数有问题,请大家慎用!!!
上一篇 /
下一篇 2007-07-12 12:19:40
/ 个人分类:其他
et&J4x:Vpi-]0 float x;51Testing软件测试网J(ab-C {2Kc
char *s = "7.2339 by these hilts or I am a villian else";
,?8e*j#d{E0
/P fO,pbyH0dSP0 x = atof(s);
n N4zt3u(LtbV0 /* The %.2f formatting string limits the output to 2 decimal places */51Testing软件测试网AbY$l:fD)w/`1`
lr_output_message("%.2f", x);51Testing软件测试网;q'hw{3u@:[(f
51Testing软件测试网}g^|rYF应输出:7.23
Y1p9[+M"X;s0实际输出为:1244128.00(此值各个机器运行结果可能不同)51Testing软件测试网
lvP:O` ` P
51Testing软件测试网Py0cX {B/[&^-X51Testing软件测试网B7Fll_6g't51Testing软件测试网_/S t/]:B8_Y8fN51Testing软件测试网N/s8P1S`/b;tbLink URL:
http://www.cnblogs.com/tester2test/archive/2006/06/09/421345.html
收藏
举报
TAG: