module documentation

Numeric helper functions and converters

Class BCD Converter for 2-digit binary-coded decimal
Class LeftNibbleBCD Converter for 2-digit binary-coded decimal with a single extra nibble
Class RightNibbleBCD Converter for 2-digit binary-coded decimal with a single extra nibble
Function replacer Iteratively applies string replacements
Function sign Computes the mathematical sign of a number
Function squash Removes all spaces from a string
Variable pi Undocumented
Variable e Undocumented
def replacer(string: str, replacements: dict[str, str]) -> str: (source)

Iteratively applies string replacements

Parameters
string:strThe input string
replacements:dict[str, str]The replacements to make
Returns
strThe input string with all replacements made in-order
def sign(x: int) -> int: (source)

Computes the mathematical sign of a number

Parameters
x:intThe input number
Returns
intThe sign of x
def squash(string: str) -> str: (source)

Removes all spaces from a string

Parameters
string:strThe input string
Returns
strThe input string with all spaces removed

Undocumented

Undocumented