-
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.
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
Binary file modified
BIN
+369 Bytes
(150%)
obsidian_parser/__pycache__/multiplication.cpython-310.pyc
Binary file not shown.
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,10 +1,26 @@ | ||
class Multiplication: | ||
"""Multiply number by multiplier.""" | ||
""" | ||
Instantiate a multiplication operation. | ||
Numbers will be multiplied by the given multiplier. | ||
:param multiplier: The multiplier. | ||
:type multiplier: float | ||
""" | ||
|
||
def __init__(self, multiplier: float): | ||
"""Initialize multiplier.""" | ||
self.multiplier = multiplier | ||
|
||
def multiply(self, number: float) -> float: | ||
"""Multiply number by multiplier.""" | ||
""" | ||
Multiply a given number by the multiplier. | ||
:param number: The number to multiply. | ||
:type number: float | ||
:return: The result of the multiplication. | ||
:rtype: float | ||
""" | ||
return number * self.multiplier | ||
|