Skip Headers

Oracle® Objects for OLE Developer's Guide

Part Number B10952-01
Go To Table Of Contents

OraNumber Object

See Also


The OraNumber interface provides methods for operations on the Oracle Number datatypes. This interface exposes a set of math operations that provide greater precision than is available in some programming environments such as Visual Basic.


The OraNumber object can be obtained through the CreateOraNumber method of the
OraSession object or by calling the Clone method on an existing OraNumber.

All of the methods on OraNumber that take a numeric argument will accept either a string, another numeric type, such as a long in VB, or another OraNumber. Note that if a Visual Basic numeric value (or constant) is used as an argument it is limited to the maximum precision provided by the language.

The OraNumber on which the math operation is called holds the result of the operation (overwriting any previous value). If a Format has been specified (through the Format property), the value of an OraNumber must match this format or an error will be raised when the Value property is accessed.


A scientific calculator example program is included as part on the samples installed with Oracle Objects for OLE. See
Demonstration Database and Code Examples.

Copyright © 1994, 2003 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents