eric.dizon
24th December 2014, 00:15
This may be a dumb question :
Is there any baan function that would convert the result of integer operation to double ? So I eliminate the Warning: A long divided by a long also gives a long.


double x, x1
long y

x = x1 + convert.to.double(y/1000)

Regards

vamsi_gujjula
24th December 2014, 05:22
x = x1 + (y/1000.0)

This should should do it.

---------------------------------
Long. x,y

Double temp.x, res

Temp.x = x

Res = temp.x/y

eric.dizon
24th December 2014, 16:16
Thanks vamsi

vinceco252
4th January 2015, 05:09
double = val(str$(long))

vahdani
4th January 2015, 10:46
... or very simply:

double = 1.0 * long