21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ceil( 3.88 , 5 ) returns 5<br />

ceil( 1.1 , 1 , 0.5 ) returns 1.5<br />

floor(x [ , base [ , offset ]])<br />

Rounding of x downwards to the nearest multiple of base with an offset of offset. The result is a number.<br />

Examples:<br />

frac(x)<br />

floor( 2.4 ) returns 2<br />

floor( 2.6 ) returns 2<br />

floor( 3.88 , 0.1 ) returns 3.8<br />

floor( 3.88 , 5 ) returns 0<br />

floor( 1.1 , 1 , 0.5 ) returns 0.5<br />

Returns the fraction part of x. The fraction is defined in such a way that frac(x ) + floor(x ) = x.<br />

Examples:<br />

frac( 11.43 ) returns 0.43<br />

frac( -1.4 ) returns 0.6<br />

round( x [ , base [ , offset ]])<br />

Rounding of x upwards or downwards to the nearest multiple of base with an offset of offset. The result is a<br />

number. If x is exactly in the middle of an interval, it is rounded upwards.<br />

Examples:<br />

fabs(x)<br />

round( 2.4 ) returns 2<br />

round( 2.6 ) returns 3<br />

round( 2.5 ) returns 3<br />

round( 3.88 , 0.1 ) returns 3.9<br />

round( 3.88 , 5 ) returns 5<br />

round( 1.1 , 1 , 0.5 ) returns 1.5<br />

The absolute value of x. The result is a positive number.<br />

Examples:<br />

fabs( 2.4 ) returns 2.4<br />

fabs( -3.8 ) returns 3.8<br />

numsum( expr1 [ , expr2, ... exprN ])<br />

Returns the numeric sum of 1 to N arguments. As opposed to the + operator, numsum will treat all nonnumeric<br />

values as 0.<br />

Examples:<br />

806<br />

numsum( 1,2,4 ) returns 7<br />

numsum( 1,'xyz' ) returns 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!