decimal.Context.logb()
  • References/Python/Python/Numeric & Mathematical

logb(x) Returns the exponent of the magnitude of the operand’s MSD.

2025-01-10 15:47:30
decimal.Context.fma()
  • References/Python/Python/Numeric & Mathematical

fma(x, y, z) Returns x multiplied by y, plus z.

2025-01-10 15:47:30
decimal.Context.next_minus()
  • References/Python/Python/Numeric & Mathematical

next_minus(x) Returns the largest representable number smaller than x.

2025-01-10 15:47:30
decimal.Context.quantize()
  • References/Python/Python/Numeric & Mathematical

quantize(x, y) Returns a value equal to x (rounded), having the exponent of y.

2025-01-10 15:47:30
random.getrandbits()
  • References/Python/Python/Numeric & Mathematical

random.getrandbits(k) Returns a Python integer with k random bits. This method is supplied with the MersenneTwister

2025-01-10 15:47:30
decimal.Context.compare()
  • References/Python/Python/Numeric & Mathematical

compare(x, y) Compares x and y numerically.

2025-01-10 15:47:30
decimal.Decimal.is_subnormal()
  • References/Python/Python/Numeric & Mathematical

is_subnormal(context=None) Return

2025-01-10 15:47:30
decimal.Decimal.normalize()
  • References/Python/Python/Numeric & Mathematical

normalize(context=None) Normalize the number by stripping the rightmost trailing zeros and converting any result equal to

2025-01-10 15:47:30
decimal.Context.copy_sign()
  • References/Python/Python/Numeric & Mathematical

copy_sign(x, y) Copies the sign from y to x.

2025-01-10 15:47:30
decimal.Context.next_plus()
  • References/Python/Python/Numeric & Mathematical

next_plus(x) Returns the smallest representable number larger than x.

2025-01-10 15:47:30