我的地盘我做主! 博客:http://tester2test.cnblogs.com/   msn:win_soft@163.com

loadrunner的atof函数有问题,请大家慎用!!!

上一篇 / 下一篇  2007-06-07 14:30:40 / 个人分类:其他

)R d.BGV0     float x;
vfK HF'u/[ D`p0     char *s = "7.2339 by these hilts or I am a villian else";51Testing软件测试网|+\dMXUJ)|;u^;v

51Testing软件测试网lgY+mhAB4D

     x = atof(s);51Testing软件测试网9eAle3p*K
     /* The %.2f formatting string limits the output to 2 decimal places */51Testing软件测试网#h{#akE\7lu:a
     lr_output_message("%.2f", x);51Testing软件测试网 |)un[0Q+kH

C[]#U/m[;g|0应输出:7.23  51Testing软件测试网.i&e/n$@&R0I
实际输出为:1244128.00(此值各个机器运行结果可能不同)

`Vqi'f0
o'D:nq*ba|%R051Testing软件测试网%IY@ M#C}
测试者家园 2006-06-09 09:59 发表评论
51Testing软件测试网M'ZI/~Y

^)v.W7We\0y!pLX0Link URL: http://www.cnblogs.com/tester2test/archive/2006/06/09/421345.html

TAG:

 

评分:0

我来说两句

Open Toolbar