slovom 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -1
- data/lib/slovom/version.rb +1 -1
- data/spec/slovom_spec.rb +0 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -33,9 +33,12 @@ product2.price.slovom => "хиляда петстотин шестдесет и
|
|
33
33
|
|
34
34
|
product3.price.to_s => "0.75"
|
35
35
|
product3.price.slovom => "седемдесет и пет стотинки"
|
36
|
+
|
37
|
+
"76.03".to_d.slovom => "седемдесет и шест лева и три стотинки"
|
36
38
|
```
|
37
39
|
|
38
|
-
It parses numbers of up to 1 quadrillion (1000000000000000), as
|
40
|
+
It parses numbers of up to 1 quadrillion (1000000000000000), as larger numbers are not likely to be used in financial transactions and hence no need to be expressed verbally. It returns the string "много" if higher number is used.
|
41
|
+
Note the `.slovom` method is attached to the `BigDecimal` class, which is also used by default for decimals in Rails.
|
39
42
|
|
40
43
|
## Contributing
|
41
44
|
|
data/lib/slovom/version.rb
CHANGED
data/spec/slovom_spec.rb
CHANGED