Language Features

PyDecimal

Python stdlib module — decimal. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.getcontext()Neutral
#
Signature
getcontext()

Get the current default context.

.localcontext()Neutral
#
Signature
localcontext(ctx, kwargs)

Return a context manager that will set the default context to a copy of ctx

.setcontext()Neutral
#
Signature
setcontext(context)

Set a new default context.

.Clamped()Neutral
#
Signature
Clamped(...)

Clamped class.

.Context()Neutral
#
Signature
Context(...)

The context affects almost all operations and controls rounding,

.ConversionSyntax()Neutral
#
Signature
ConversionSyntax(...)

ConversionSyntax class.

.Decimal()Neutral
#
Signature
Decimal(...)

Construct a new Decimal object. 'value' can be an integer, string, tuple,

.DecimalException()Neutral
#
Signature
DecimalException(...)

DecimalException class.

.DecimalTuple()Neutral
#
Signature
DecimalTuple(...)

DecimalTuple(sign, digits, exponent)

.DivisionByZero()Neutral
#
Signature
DivisionByZero(...)

DivisionByZero class.

Fully-Qualified Names

FQNField
decimalfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import decimal