Python module num2words Difference in behavior between English and Russian

Python module num2words Difference in behavior between English and Russian

num2words version 0.5.5 Mac OS X 10.12.6

from num2words import num2words
print(num2words(int(10), lang='ru'))  # десять → 10
print(num2words(float(10), lang='ru')) # десять запятая ноль → 10.0

print(num2words(int(10)))  # ten → 10
print(num2words(float(10))) # ten → 10

In Russian, it seems to express it when it becomes .0. In English, it seems that it is considered that there is no case of .0.

Recommended Posts

Python module num2words Difference in behavior between English and Russian
Difference between list () and [] in Python
Difference between == and is in python
Difference between @classmethod and @staticmethod in Python
Difference between append and + = in Python list
Difference between nonlocal and global in Python
[python] Difference between variables and self. Variables in class
About the difference between "==" and "is" in python
Difference between Ruby and Python in terms of variables
Difference between return, return None, and no return description in Python
Difference between Ruby and Python split
Difference between java and python (memo)
List concatenation method in python, difference between list.extend () and “+” operator
Cooperation between python module and API
Difference between python2 series and python3 series dict.keys ()
[Python] Explain the difference between strftime and strptime in the datetime module with an example
[Python] Difference between function and method
Python --Difference between exec and eval
[Python] Difference between randrange () and randint ()
[Python] Difference between sorted and sorted (Colaboratory)
Difference in how to write if statement between ruby ​​and python
Transcendental simple and clear! !! Difference between single quotes and double quotes in Python
File open function in Python3 (difference between open and codecs.open and speed comparison)
Differences in authenticity between Python and JavaScript
Differences between Ruby and Python in scope
Implementation module "deque" in queue and Python
Differences in syntax between Python and Java
Difference between PHP and Python finally and exit
[Python] Difference between class method and static method
[Python Iroha] Difference between List and Tuple
[python] Difference between rand and randn output
Differences in multithreading between Python and Jython
Module import and exception handling in python
Difference in writing method to read external source code between Ruby and Python
Indent behavior of json.dumps is different between python2 and python3
[python] Calculation of months and years of difference in datetime
Mutual conversion between JSON and YAML / TOML in Python
Compare "relationship between log and infinity" in Gauche (0.9.4) and Python (3.5.1)
Sample of getting module name and class name in Python
Differences in behavior between append () and "+ =" operators when adding data to a list in Python
Install OpenCV 3 (core + contrib) in Windows & Python 3 environment & Difference between OpenCV 2 and OpenCV 3 & Easy operation check
Difference between process and job
Difference between "categorical_crossentropy" and "sparse_categorical_crossentropy"
Find the difference in Python
Python> Difference between inpbt and print (inpbt) output> [1. 2. 3.] / array ([1., 2., 3.], dtype = float32)
Difference between regression and classification
Stack and Queue in Python
Get the current date and time in Python, considering the time difference
Python debug and test module
Difference between np.array and np.arange
Difference between MicroPython and CPython
Unittest and CI in Python
Difference between ps a and ps -a
Difference between return and print-Python
I tried to find out the difference between A + = B and A = A + B in Python, so make a note
Difference in behavior of transparent Frame made with tkinter in pyinstaller [Python]
I investigated the behavior of the difference between hard links and symbolic links
Python / Numpy> Link> Difference between numpy.random and random.random> thread-safe or not
MIDI packages in Python midi and pretty_midi
Difference between SQLAlchemy filter () and filter_by ()
[Python] logging in your own module