Skip Headers

Oracle® Objects for OLE Developer's Guide
Release 9.2.0.4

Part Number B10952-01
Go To Table Of Contents
Contents

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.


 
Oracle
Copyright © 1994, 2003 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents