PublicAPI icon indicating copy to clipboard operation
PublicAPI copied to clipboard

Incomprehensible currency conversion

Open AlporiRoin opened this issue 2 years ago • 1 comments

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...

AlporiRoin avatar Jan 23 '22 11:01 AlporiRoin

@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

timmixell avatar Jan 24 '22 14:01 timmixell