diff --git a/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb b/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb index a791a11e..ea1814eb 100644 --- a/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +++ b/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb @@ -22,7 +22,7 @@ def full_fraction end def figures - @strategy.figures + @strategy.figures.reverse end def zero_length diff --git a/spec/numbers_and_words/float/fixture_examples/es.yml b/spec/numbers_and_words/float/fixture_examples/es.yml index 1150eeb7..00be6940 100644 --- a/spec/numbers_and_words/float/fixture_examples/es.yml +++ b/spec/numbers_and_words/float/fixture_examples/es.yml @@ -25,3 +25,7 @@ to_words: 0.7: siete décimas 1.0: uno 42.1: cuarenta y dos con una décima + fractions_with_precision: + options: + :precision: 2 + 0.1: cero con diez centésimas