Login Page - Create Account

Support Board


Date/Time: Wed, 15 May 2024 10:40:08 +0000



Post From: moving from signal to trading system - compiling etc.

[2017-03-23 23:18:28]
enemyspy - Posts: 304
Those are just compliler warnings because you did not cast the doubles as floats and the int as a float when putting it in the float array. A lot of the time it does not matter, and sometimes it can result in inaccurate values on conversion.

But if you want to get rid of the warnings just cast it properly:
int a = 1;
float b = (float)a;

you should not get some of those files, when you create the project it should be an empty dll you only really need the dll and the debug file.

Also usually truncating a double to a float is a bad idea because it will not be accurate if the variable you are using in the first place needs the decimal precision of a double.
if you do not require the decimal precision of a double you should use a float then you don't need to cast it.
Date Time Of Last Edit: 2017-03-23 23:23:50