Subject RE: [ib-support] SP Calculate Error.
Author Gerhardus Geldenhuis
Hi
I found the error.
Your answer was right. It appears that the second line always has a value
higher than 100 so you dont get the problem.

Second question how do I explicitly cast. I have never done it before.
I have read about the cast function in the manuals and they also mention
explicit casting but there is no example.

Groete
Gerhardus

> -----Original Message-----
> From: Gerhardus Geldenhuis [mailto:linuxmail@...]
> Sent: 04 June 2001 13:05
> To: ib-support@yahoogroups.com
> Subject: [ib-support] SP Calculate Error.
>
>
> Hi
> I have the following line of code that gives the wrong result.
> The result I
> get is 39.8 instead of 49.75.
> Most of the values is variables but I changed it to values to see
> if one of
> the variables was at fault.
> TEMPVAR = 39.8*(1+25/100);
>
> If this one line is not enough I will post the whole procedure if need be.
>
> Hopefully I am overlooking something obvious.
>
> Groete
> Gerhardus
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>