DonorDrive / PublicAPI

Documentation and Examples for the DonorDrive Public API
MIT License
37 stars 12 forks source link

Incomprehensible currency conversion #55

Open AlporiRoin opened 2 years ago

AlporiRoin commented 2 years ago

I am trying to convert dollars into rubles, approximately using this code:

`extracted_currency = 'USD'; price_extraction = 30.58;

                        currencyConverter.from( extracted_currency ).to( "RUB" ).amount( price_extraction ).convert().then((response) => {

                            console.log( response );
                        })`

But the answer comes with a rather strange result: `E:\multi>node index.js 2

The library is able to work with fractional numbers and if so, how do I configure it?

I read the documentation, but I didn't find anything like that...

timmixell commented 2 years ago

@AlporiRoin what library are you referring to? the DonorDrive API repository is a document repository with a few demos. afaik, the node example doesn't do anything with currency conversion