savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
813 stars 487 forks source link

Negative values between (-1,0) not negative #402

Open DanBmh opened 3 years ago

DanBmh commented 3 years ago

Expected Behaviour

Negative values between -1 and 0 should have a "minus" before the textual number

Actual Behaviour

Missing "minus"

It does work correctly for values lower than -1

Steps to reproduce

import num2words
num2words.num2words(-0.01)
# 'zero point zero one'

# below -1 it's correct again
num2words.num2words(-1.01)
# 'minus one point zero one'

(Version: 0.5.10)

DanBmh commented 3 years ago

Doesn't work for German too