Topics
Replies

uvx_01
13 Dec 2013, 23:35

I just realized how stupid my question was.

I was pretty tired when I wrote this line of code :)

It should have been:

Print("Account.Balance before the trade is " + Account.Balance.ToString());

or 

string msg = "Account.Balance before the trade is " +  Account.Balance.ToString();
Print(msg);

 

LOL


@uvx_01

uvx_01
13 Dec 2013, 21:47

Just tested again.

Print("Account.Balance before the trade is {0} ", Account.Balance);

is showing the numbers, while the 

Print("Account.Balance before the trade is ", Account.Balance.ToString());

isn't. 


@uvx_01

uvx_01
13 Dec 2013, 20:24

Sorry - typo:

Should be

"The Account.Balance IS double, which definitely has the ToString() method" 


@uvx_01

uvx_01
13 Dec 2013, 20:23

This is a different approach. I will switch to it.

But the first one should work as well. 

The Account.Balance id double, which definitely has the ToString() method. 


@uvx_01