• Resolved Jenny Beaumont

    (@jennybeaumont)


    Hi there,

    I have a case where numbers in the thousands are expressed :
    €80,000
    and it seems the numbers after the comma aren’t being included.

    The French actually tend to use a space to express thousands
    €80 000
    but this display has the same effect : only the 80 is used in currency conversion.

    Work arounds? Is this specific to a preset for amounts in Euros?

    thnx!
    -jennyb

    https://wordpress.org/plugins/euro-fxref-currency-converter/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author joost de keijzer

    (@joostdekeijzer)

    Hi,

    Input should be numbers, not formatted strings.

    To get decimals: the plugin has a “tab” in the editor window help screen. Otherwise
    https://wordpress.org/plugins/euro-fxref-currency-converter/other_notes/ explains it (round=false parameter)

    The notation of the numbers is done in the prefered notation of that currency, so you can actually get

    € 10,= / £ 8.=

    (for Euros you get a decimal comma and a dot thousands separator). It seemed logical at the time…
    To quickly resolve it: either edit the “currency_symbols.php” file somewhere halfway or use the “raw” php variant: <?php EuroFxRef::convert( $amount, $from, $to ); ?> and format the number using php.

    Thread Starter Jenny Beaumont

    (@jennybeaumont)

    Got it. Was able to strip out the formatting and now it’s working perfectly, thnx!
    best,
    -jennyb

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trouble with commas and thousands’ is closed to new replies.