Функция tonumber должна обрезать нули,почему же она этого не делает ?
priceB=tonumber (getParamEx("SPBFUT", "SRH6", 'offer').param_value)
t = {
["CLASSCODE"]="SPBFUT",
["SECCODE"]="SRH6 ",
["ACTION"]="NEW_ORDER",
["ACCOUNT"]=" ",
["CLIENT_CODE"]=" 99883 ",
["TYPE"]="L",
["OPERATION"]="S",
["QUANTITY"]="1",
["PRICE"]=tonumber(priceB),
["TRANS_ID"]="1"
}
res=sendTransaction(t)
message(res,1)
priceB=tonumber (getParamEx("SPBFUT", "SRH6", 'offer').param_value)
t = {
["CLASSCODE"]="SPBFUT",
["SECCODE"]="SRH6 ",
["ACTION"]="NEW_ORDER",
["ACCOUNT"]=" ",
["CLIENT_CODE"]=" 99883 ",
["TYPE"]="L",
["OPERATION"]="S",
["QUANTITY"]="1",
["PRICE"]=tonumber(priceB),
["TRANS_ID"]="1"
}
res=sendTransaction(t)
message(res,1)