pull/1653/head
jarbasal 2018-06-22 00:04:17 +01:00
parent 1710803bb0
commit 57a86a7fe6
2 changed files with 3 additions and 2 deletions

View File

@ -241,8 +241,8 @@ def pronounce_number_en(num, places=2, short_scale=True, scientific=False):
n, power = number.replace("+", "").split("E")
power = int(power)
if power != 0:
return pronounce_number_en(float(n), places, short_scale, False) + \
" times ten to the power of " + \
return pronounce_number_en(float(n), places, short_scale, False) \
+ " times ten to the power of " + \
pronounce_number_en(power, places, short_scale, False)
if short_scale:
number_names = NUM_STRING_EN.copy()

View File

@ -181,6 +181,7 @@ class TestPronounceNumber(unittest.TestCase):
"one point six seven two times ten to the power of "
"negative twenty seven")
# def nice_time(dt, lang="en-us", speech=True, use_24hour=False,
# use_ampm=False):
class TestNiceDateFormat(unittest.TestCase):