Oracle Objects for OLE
Release 9.0.1

Part Number A90173-01

Home

Book List

Contents

Master Index

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 (via 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 © 1996-2001, Oracle Corporation.

All Rights Reserved.

Home

Book List

Contents