[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Arithmetic operations on Floats in SQR



May be this will help you

 
TradingPosition/1000000 &trdposition
let #trdposition = &trdposition
add #trdposition to #subtottrdposition.
 
As far as i know you have to convert it into number first and then do 
arithmatic operation.
 
Chandra
Kajal Somaiya <Kajal.Somaiya@xoriant.com> wrote:
Hi All,
In one of my sqrs the code is someting like this....

TradingPosition/1000000 &trdposition
add &trdposition to #subtottrdposition

but the SQR while execution throws following error in versio 6.2
Error on line 105:
(SQR 1400) Only numerics allowed for arithmetic.

This was working fine in version 3.0.12.x

I tried doing
move &trdposition to #trdposition 
but that is like truncating the decimal part of a number.

Please suggest a work arround.
regds,
kajal

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users

---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users