Incomprehensible currency conversion
AlporiRoin opened this issue · 1 comments
AlporiRoin commented
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
@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