Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

OraNumber Object

See Also
Properties
Methods

Description

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.

Remarks

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.

Example

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