[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] currency-converter.egg
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] currency-converter.egg |
Date: |
Fri, 12 Oct 2007 07:25:49 +0200 |
On 10/9/07, Jean-Philippe Théberge <address@hidden> wrote:
> In my process of learning "the chicken way" I have made an egg out of a
> simple but useful currency converter.
>
> [procedure] (currency-convert FROM TO AMOUNT #:table #:format?)
>
> (currency-convert 'USD 'EUR 45.34)
> => "32.03"
> (currency-convert 'USD 'EUR 45.34 #:format? #f)
> => 32.3003490774382
> (currency-convert 'USD 'EUR 45.34 #:table '((EUR . 1)(USD . 34)))
> => "1.33"
>
> Although it is nothing as sophisticated as most of the eggs, I though
> someone might be interested.
>
Sure! Just send me the egg and I'll put it into the repo. Alternatively
you can get SVN access.
cheers,
felix