Subject Re: [ib-support] Re: 3 * 1/3 = 0 ???
Author Pirtea Calin Iancu
----- Original Message -----
From: "Martijn Tonies"

> You weren't asked to declare it as a float either...
> Easy:
> 1 = integer
> 1.0 = float

I think 1.0 is still an integer, just a scaled one.
If you want float you will have to cast it like cast(1.0 as float)
otherwise it will be just an integer. An int64 for that matter but
still an integer.

Anyway the thing is that some might count on the fact that integer
operations result in integers. I know I do.


Best regards,
Application Developer
Pirtea Calin Iancu
S.C. SoftScape S.R.L.