Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide
Release 9.2.0.4

Part Number B10954-01
Go To Table Of Contents
Contents

GetPrecision Method

Applies To

OField

Description

This method returns the precision of the field.

Usage

int GetPrecision(void) const

Remarks

In an Oracle database, one column data type is number. If a field has a data type of number it has two additional attributes: scale and precision. The precision is the total number of decimal digits. In Oracle this can range from 1 to 38.

Precision has no meaning for non-number fields.

Return Value

The precision of the number field. On error (which includes calling this method on a non-number field) a 0 is returned.


 
Oracle
Copyright © 1998, 2003 Oracle Corporation.

All Rights Reserved.
Go To Table Of Contents
Contents