Oracle9i OLAP Services Developer's Guide to the Oracle OLAP API
Release 1 (9.0.1)

Part Number A88756-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Performing Calculations, 3 of 7


Making Numerical Comparisons

How do you make numerical comparisons?

The NumberSource class has a number of methods make numerical comparisons. These methods compare the value of each element in a NumberSource to a specified value. These methods return a BooleanSource that has the same structure as the original NumberSource and that has an element that is true when the comparison for a given element of the original NumberSource is true, or false when the comparison is false. There are separate versions of each of these methods that you can use to specify a literal double, float, int, or short value.

List of numerical comparison methods

The numerical comparison methods provided with the OLAP API include those listed in the following table.

Method 

Description 

eq  

Compares each element of the NumberSource to the specified value, and determines if it is an equal value 

ge 

Compares each element of the NumberSource to the specified value, and determines if it is a greater or equal value. 

gt 

Compares each element of the NumberSource to the specified value, and determines if it is a greater value. 

le 

Compares each element of the NumberSource to the specified value, and determines if it is a lesser or equal value. 

lt 

Compares each element of the NumberSource to the specified value, and determines if it is a lesser value. 

ne 

Compares each element of the NumberSource to the specified value, and determines if it is an unequal value. 

For a more complete explanation of these methods, see Oracle OLAP API Reference.


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table of Contents
Contents
Go To Index
Index

Master Index

Feedback