Add float initializer to FtPrecise

This commit is contained in:
Matthias
2022-08-10 11:29:04 +00:00
parent e7cb1b7375
commit ed004236ce
3 changed files with 12 additions and 4 deletions

View File

@@ -73,3 +73,8 @@ def test_FtPrecise():
assert FtPrecise('3.1415') <= FtPrecise('3.1415')
assert FtPrecise('3.1415') <= FtPrecise('3.14150000000000000000001')
assert FtPrecise(213) == '213'
assert FtPrecise(-213) == '-213'
assert str(FtPrecise(-213)) == '-213'
assert FtPrecise(213.2) == '213.2'