class_docstr: Class to provide helper functions for mathematics and other small things
class_docstr_tok: ["Class","to","provide","helper","functions","for","mathematics","and","other","small","things"]
docstr: Returns percentage.
  
  Just a normal algorithm to return the percent.
  
  Args:
      part -> part of the whole number
      whole -> the whole number
  
  Returns:
      Returns the percentage of part to whole.
docstr_tok: ["Returns","percentage",".","Just","a","normal","algorithm","to","return","the","percent",".","Args",":","part","-",">","part","of","the","whole","number","whole","-",">","the","whole","number","Returns",":","Returns","the","percentage","of","part","to","whole","."]
code: def percentage(part: float, whole: float) -> float:
      """Returns percentage.
  
      Just a normal algorithm to return the percent.
  
      Args:
          part -> part of the whole number
          whole -> the whole number
  
      Returns:
          Returns the percentage of part to whole.
  
      """
      if part <= 0 or whole <= 0:
          return 0
      # works with percentages
      return 100 * float(part) / float(whole)
  
file_path: Ciphey/ciphey/mathsHelper.py
imports: from collections import OrderedDict
  from string import punctuation
  from typing import Optional
  import logging
  from rich.logging import RichHandler
label_desc: Use image node_id 4 for calling the mathsHelper obj's underlying member method code with example usage: obj.percentage(part, whole) and returns: unknown, int