class decimal.Underflow Numerical underflow with result rounded to zero. Occurs when a subnormal
quantize(x, y) Returns a value equal to x (rounded), having the exponent of y.
normalize(context=None) Normalize the number by stripping the rightmost trailing zeros and converting any result equal to
math.log1p(x) Return the natural logarithm of 1+x (base e). The result is calculated in a way which is accurate
remainder_near(other, context=None) Return the remainder from dividing self by other. This differs from self
cmath.sin(x) Return the sine of x.
random.gauss(mu, sigma) Gaussian distribution. mu is the mean, and sigma is the standard deviation. This is
random.lognormvariate(mu, sigma) Log normal distribution. If you take the natural logarithm of this distribution, you’ll get
class decimal.InvalidOperation An invalid operation was performed. Indicates that an operation
cmath.pi The mathematical constant π, as a float.
Page 5 of 27