Skip to content

Commit 138e592

Browse files
committed
updated to reflect change
1 parent 4f7a753 commit 138e592

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

percentify/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def _round_value(value: float, decimals: Optional[int]) -> float:
1111

1212
def percent(part: SupportsFloat, whole: SupportsFloat, decimals: Optional[int] = 2) -> float:
1313
"""
14-
Calculate what percentage `part` is of the `whole`.
14+
Calculate what percentage as `part` is of the `whole`.
1515
1616
Args:
1717
part: The numerator.
@@ -79,7 +79,7 @@ def difference(a: SupportsFloat, b: SupportsFloat, decimals: Optional[int] = 2)
7979

8080
def split(total: SupportsFloat, weights: List[SupportsFloat], decimals: Optional[int] = 2) -> List[float]:
8181
"""
82-
Distribute a total into percentage-based shares according to weights.
82+
split a total into percentage-based shares according to weights.
8383
8484
Args:
8585
total: The total value to distribute.
@@ -108,7 +108,7 @@ def split(total: SupportsFloat, weights: List[SupportsFloat], decimals: Optional
108108

109109
def display(value: SupportsFloat, decimals: Optional[int] = 2, suffix: str = "%") -> str:
110110
"""
111-
Format a numeric value as a percentage string.
111+
display takes a numeric value as a percentage string.
112112
113113
Args:
114114
value: The percentage value to format.

0 commit comments

Comments
 (0)