Currency Converter calculator script allows you to calculate the number of currency units in different currencies.
To calculate, you must enter a numeric value in the input field and select a monetary unit in the drop-down list, relative to which the conversion to other currencies will be made.
When you change the value in the input field or select a currency, the calculator dynamically, in real time, performs the calculation and displays the result.
The calculation is carried out relative to the rate of a certain currency specified in the settings. In this example, the exchange rate of the Russian ruble relative to other currencies is used. By default, the calculator is configured to calculate EUR( Euro), USD (dollars), RUB (rubles), UAH (hryvnia) and can be supplemented with other currencies in the settings yourself. The calculator does not receive data on current rates automatically. Currency rates are set manually in the calculator settings for each individual position.
Also available is a calculator option with automatic receipt of 35 exchange rates online from the server (without the word declination function)
https://retab.ru/item/2744950.
The calculator has the function of automatic declination of words depending on their quantitative expression, for example: ´ruble´, ´ruble´, ´rubles´. The function works with positive and negative numbers, with fractional tenths, hundredths, thousandths... etc.
The function allows you to incline the following words:
´ruble´, ´ruble´, ´rubles´
´Euro´,´Euro´,´euros´
´dollar´, ´dollar´, ´dollars´
´UAH´,´hryvnia´,´UAH´
Calculation example:
EUR: 100.00 € Euro
USD: $ 112.70 USD
RUB: 7100.00 ք rubles
UAH: 2730.77 ₴ hryvnia
Uses: html, css, javascript.