Post Reply 
(11C) Currency Converter
10-01-2018, 06:05 PM (This post was last modified: 10-01-2018 06:06 PM by Dieter.)
Post: #7
RE: (11C) Currency Converter
(10-01-2018 04:37 PM)Albert Chan Wrote:  No need to add CHS. Instead, put the sign in conversion factor.

That's a good idea. This way you can even decide whether you want to apply the sign convention or not.

(10-01-2018 04:37 PM)Albert Chan Wrote:  It will be more convenient with negative currency all refer to the same currency, say US.
This is especially nice for currency with close to one conversion rate, to tell them apart.

With this setup, A = currency A, B = currency B ...

currency A of 5 to currency B, just key: 5 [A] [B]

I now have read these lines at least three times but I still don't know what exactly you want to say here. Sorry. ;-) But I have a first idea of what may be the idea here:

Remove the CHS commands from the program. Store the conversion factors as –USD/currency, i.e. the negative inverse of the present factor. For instance –1,1595 in R1 and –1,3026 in R2. Now key [A] means EUR and key [B] stands for GBP. Pressing these keys converts these currencies into USD. Successive conversions may convert from currency A to currency B.

What is the equivalent of 15 Euros in British Pounds?

15 [A] => -17,39   press the EUR key. The negative sign indicates that 15 EUR are 17,39 USD
     [B] =>  13,35   press the GBP key. This now shows that the same 15 EUR (or 17,39 USD) are 13,35 GBP

So this is quite intuitive. [A] means Euros and [B] means Pounds. To convert 100 GBP into EUR you'd type 100 [B] [A] to get 112,34 EUR as the result.

Please correct me if this is not what you meant to say.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Currency Converter - Gamo - 10-01-2018, 06:00 AM
RE: (11C) Currency Converter - Dieter - 10-01-2018, 11:58 AM
RE: (11C) Currency Converter - Albert Chan - 10-01-2018, 12:49 PM
RE: (11C) Currency Converter - Gamo - 10-01-2018, 01:00 PM
RE: (11C) Currency Converter - Dieter - 10-01-2018, 04:02 PM
RE: (11C) Currency Converter - Albert Chan - 10-01-2018, 04:37 PM
RE: (11C) Currency Converter - Dieter - 10-01-2018 06:05 PM
RE: (11C) Currency Converter - Albert Chan - 10-01-2018, 06:28 PM
RE: (11C) Currency Converter - Gamo - 10-02-2018, 01:53 AM



User(s) browsing this thread: 3 Guest(s)