Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Currency Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWDecimalOverflowErr<T>

Module:  Currency   Group:  Decimal


Does not inherit

Local Index

Members

Synopsis

#include <rw/currency/decimal.h> /* for RWDecimalOverflowErr<T>*/
                              /* and RWDecmialInexactErr<T> */
#include <rw/currency/mp2int.h>  /* For RWMP2Int               */

RWDecimal<RWMP2Int> x = "9999999999"; 
RWDecimal<RWMP2Int> y = x*x;  // calls the overflow error 
                              //handler 

The following header files are available for backward compatibility:

#include <rw/dec52.h>   /* RWDecimal52InexactErr,
                           RWDecimal52OverflowErr*/
#include <rw/dec64.h>   /* RWDecimal64InexactErr,
                           RWDecimal64OverflowErr*/
#include <rw/dec96.h>   /* RWDecimal96InexactErr,
                           RWDecimal96OverflowErr*/

Description

RWDecimalOverflowErr<T> is one of the error objects used to signal problems in computations involving RWDecimal<T> and RWFixedDecimal<T> objects. The other error object is RWDecimalInexactErr<T>. See the "Arithmetic" entry in the RWDecimal<T> and RWFixedDecimal<T> reference sections for details about when the error objects are used. Also, see Section 8.4, "Error-Handling," of the Currency Module User's Guide for information about how to set error handlers.

Public Member Functions

RWDecimal<T>
RWDecimalOverflowErr<T>::leftOperand();
RWCString
RWDecimalOverflowErr<T>::msg();
RWDecimalBase::Op
RWDecimalOverflowErr<T>::operation();
RWDecimal<T>
RWDecimalOverflowErr<T>::rightOperand();


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.