Skip to content

Incomprehensible currency conversion #55

@AlporiRoin

Description

@AlporiRoin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions