EasyManuals Logo

IBM Cognos User Manual

IBM Cognos
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #378 background imageLoading...
Page #378 background image
Mod
Returns the remainder (modulus) of an integer divided by a second integer. If the
second integer is zero, Cognos Transformer issues a divide by zero error.
Syntax
mod (integer_exp1, integer_exp2)
Examples
mod (245,3)
Returns the result: 2
Number-to-String
Returns a string from a number. If the number is negative, a minus sign (-)
precedes the string. If the number is a real number, only the truncated integer part
of the number is converted to a string.
Syntax
number-to-string (numeric_exp)
Examples
number-to-string (12345)
Returns the result: 12345
number-to-string (12345.678)
Returns the result: 12345
Round-Down
Returns a number rounded down.
The integer_exp value determines the position that is rounded. A positive
integer_exp acts on the digits to the right of the decimal point. A negative
integer_exp acts on the digits to the left of the decimal point. An integer_exp value
of zero rounds the number and removes the decimal places.
Syntax
round-down (numeric_exp, integer_exp)
Examples
round-down (-113.6667, 0)
Returns the result: -114
round-down (-113.6667, 1)
Returns the result: -113.7
round-down (-113.6667, -1)
Returns the result: -120
round-down (-113.6667, -2)
Returns the result: -200
round-down (366.2162, 0)
364 IBM Cognos Transformer Version 10.1.1: User Guide

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM Cognos and is the answer not in the manual?

IBM Cognos Specifications

General IconGeneral
DeveloperIBM
Data Sourceflat files
Operating SystemMicrosoft Windows
LicenseCommercial
Input SourcesSQL databases, Excel, CSV
PlatformMicrosoft Windows