-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changes to "setup.py". - Updated requirements. - Changed method name "set()" to "set_precision()". - Implemented strict typing. - Updates to docstring. - Changed parameter name "digit" to "number". - Updated README. Signed-off-by: schlopp96 <71921821+schlopp96@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
57 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
setuptools==58.1.0 | ||
setuptools>=58.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .SetPrecision import set | ||
from .SetPrecision import set_precision |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
from ..SetPrecision import set | ||
from ..SetPrecision import set_precision | ||
|
||
|
||
def test_setPrecisionA() -> None: | ||
assert set(3.1415926, 3) == '3.142' | ||
assert set_precision(3.1415926, 3) == '3.142' | ||
|
||
|
||
def test_setPrecisionB() -> None: | ||
assert set(10.5, 0) == '10' | ||
assert set_precision(10.5, 0) == '10' | ||
|
||
|
||
def test_setPrecisionC() -> None: | ||
assert set(5280.40836894, 2) == '5280.41' | ||
assert set_precision(5280.40836894, 2) == '5280.41' | ||
|
||
|
||
def test_setPrecisionD() -> None: | ||
assert set(150, 5) == '150.00000' | ||
assert set_precision(150, 5) == '150.00000' | ||
|
||
|
||
def test_setPrecisionE() -> None: | ||
assert set(1485809.4861172) == '1485809.5' | ||
assert set_precision(1485809.4861172) == '1485809.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters