IBM Cognos User Manual page 378

Version 10.1.1
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents