`
solem
  • 浏览: 33442 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

loadrunner的atof函数有问题(转)

阅读更多
float x;
     char *s = "7.2339 by these hilts or I am a villian else";

     x = atof(s);
     /* The %.2f formatting string limits the output to 2 decimal places */
     lr_output_message("%.2f", x);

应输出:7.23  
实际输出为:1244128.00(此值各个机器运行结果可能不同)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics