Back to index

python3.2  3.2.2
Public Member Functions
decimal.Rounded Class Reference
Inheritance diagram for decimal.Rounded:
Inheritance graph
Collaboration diagram for decimal.Rounded:
Collaboration graph

List of all members.

Public Member Functions

def handle

Detailed Description

Number got rounded (not  necessarily changed during rounding).

This occurs and signals rounded whenever the result of an operation is
rounded (that is, some zero or non-zero digits were discarded from the
coefficient), or if an overflow or underflow condition occurs.  The
result in all cases is unchanged.

The rounded signal may be tested (or trapped) to determine if a given
operation (or sequence of operations) caused a loss of precision.

Definition at line 297 of file

Member Function Documentation

def decimal.DecimalException.handle (   self,
) [inherited]

Reimplemented in decimal.InvalidContext, decimal.DivisionUndefined, decimal.DivisionImpossible, decimal.ConversionSyntax, and decimal.InvalidOperation.

Definition at line 178 of file

00179     def handle(self, context, *args):
00180         pass

Here is the caller graph for this function:

The documentation for this class was generated from the following file: