Share and Money Management  0.16
Functions
smm.math Namespace Reference

Functions

def gcd (a, b)
 Return greatest common divisor using Euclid's Algorithm. More...
 
def round_and_remove_exponent (value)
 Round to 4 decimal places and use non-exponential notation. More...
 

Detailed Description

Mathematical functions

Author
Carsten Grohmann <mail (at) carstengrohmann (dot) de>
License:
GPL version 2.0

Function Documentation

◆ gcd()

def smm.math.gcd (   a,
  b 
)

Return greatest common divisor using Euclid's Algorithm.

Test:
tests.test_math.TestMath.test_gcd()

Referenced by tests.test_math.TestMath.test_gcd().

Here is the caller graph for this function:

◆ round_and_remove_exponent()

def smm.math.round_and_remove_exponent (   value)

Round to 4 decimal places and use non-exponential notation.

Referenced by smm.quote.fetchQuote(), and tests.test_math.TestMath.test_round_and_remove_exponent().

Here is the caller graph for this function: