LR浮点数的加减运算
上一篇 /
下一篇 2014-02-20 14:32:06
/ 个人分类:性能测试
double atof( const char *string);
Action()
{
float UpPrice1;
float UpPrice2;
float i=0.1;
char * UpPrice3=(char*)calloc(100,sizeof(char));
web_set_max_html_param_len("888888");
web_reg_save_param_ex(
"ParamName=price",
"LB=ctl00_ContentPlaceHolderBody_CutLossClose1_LabelOpenPrice\">",
"RB=</span",
SEARCH_FILTERS,
"Scope=All",
"RequestUrl=*/DoOrder.aspx*",
LAST);
//委托价比开仓价格小
lr_save_string( lr_eval_string("{price}"),
"UpPrice1" );
//lr_error_message("啊啊啊%s", lr_eval_string("{UpPrice1}"));
UpPrice2=atof(lr_eval_string ("{UpPrice1}"))-i;
atof( lr_eval_string("{UpPrice1}") );
sprintf( UpPrice3,
"%.5f",
UpPrice2 );
lr_save_string( UpPrice3,
"UpPrice" );
lr_error_message("啊啊啊%s", lr_eval_string("{UpPrice}"));
收藏
举报
TAG: