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.

Time# page 828<br />

Timestamp# page 828<br />

Interval# page 829<br />

Text page 829<br />

Num#<br />

num#(expression [ , format-code[ , decimal-sep [ , thousands-sep] ]<br />

])<br />

The num# function evaluates the expression numerically according to the string given as format-code. Decimal<br />

separator and thousands separator can be set as third and fourth parameters. If the parameters 2-4 are<br />

omitted, the default number format set by script variables or in the operating system is used.<br />

Examples:<br />

The examples below assume the two following operating system settings:<br />

Default setting 1 Default setting 2<br />

Number format # ##0,# #,##0.#<br />

num#( A, '#' ) where A=35,648.375 returns:<br />

Setting 1 Setting 2<br />

String 35,648.375 35648.375<br />

Number - 35648.375<br />

num#( A, '#.#', '.' , ',') where A=35,648.375 returns:<br />

Setting 1 Setting 2<br />

String 35,648.375 35,648.375<br />

Number 35648.375 35648.375<br />

num#( A, '#.#',',','.' ) where A=35648.375 returns:<br />

Setting 1 Setting 2<br />

String 35648.375 35648.375<br />

Number 35648375 35648375<br />

num#( A, 'abc#,#' ) where A=abc123,4 returns:<br />

Setting 1 Setting 2<br />

String abc123,4 abc123,4<br />

Number 123.4 1234<br />

826

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

Saved successfully!

Ooh no, something went wrong!