Currently i have everything ready and am testing to see if it works.
I am unshure as to if anyone has attempted this before and if anything has been put into the WIKI. I am also unshure how to use WIKI yet but here is what i have figured out.
In CURRDOLL.xml (made from CURRDOLL.dat) there are 2 variables
Code: Select all
<variable name="zeroes" size="1">0</variable>
<variable name="shiftnum" size="1">1</variable>
Variable 'shiftnum' is how many times to multiply the pound by 2
For example, The very first (begginner) scenario has a starting cash of 19,900 Pounds. Setting the currency to US Dollar changes the starting cash to 39,800.
Thus the numbers for the US Dollar are 0 and 1 which means
(in an excel formula)
=IF(zeroes=0,19900*2*shiftnum,19900*2*shiftnum*(10^zeroes))
The 19,900 Pounds turns into 39,800 US Dollars
I am sure that is correct.
Now what i am trying to do is convert the Pounds to AUD (Australian Doller)
To do this, i am going by an educated guess of the australian exchange rates to US dollars of AUD $0.72 = US $1.0
My problem at the moment is that the variable datatype i think may be an integer, but i need a double or a float.
This will be the variables for the AUD
Code: Select all
<variable name="zeroes" size="1">0</variable>
<variable name="shiftnum" size="1">0.72</variable>
Currently having the size of shiftnum at 1, it sees it as a 0 (zero) and converts the currency to the UK pound because that is what currency is given when 0 and 0 are used in the variables.
Thanks, need any more info please ask.