floating point data type

Questions about MultiCharts and user contributed studies.
janus
Posts: 835
Joined: 25 May 2009
Has thanked: 63 times
Been thanked: 104 times

floating point data type

Postby janus » 10 Sep 2009

I've just noticed the my numeric variables and arrays are defaulted to double type (8 byte floating point data type). Was this always the case, and will it always be? This is important as I've written dll's that rely on the right floating point type variables being passed back and forth.

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 11 Sep 2009

Dear janus,
and will it always be?
Yes. This is the way it works.

janus
Posts: 835
Joined: 25 May 2009
Has thanked: 63 times
Been thanked: 104 times

Postby janus » 11 Sep 2009

OK, that's fine. I was confused as I saw in some studies the explicit use of double in front of some of the variable names. Don't understand why they bother if all numeric variables are double anyway.

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 11 Sep 2009

janus,
I saw in some studies the explicit use of double in front of some of the variable names. Don't understand why they bother if all numeric variables are double anyway.
Probably these studies were developed for TS originally. TS supports int, float and double, while MC supports only double.

The explicit use of double will result both TS and MC compatibility.

janus
Posts: 835
Joined: 25 May 2009
Has thanked: 63 times
Been thanked: 104 times

Postby janus » 11 Sep 2009

I see - thanks.


Return to “MultiCharts”