13.07.2015 Views

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

Caché Transact-SQL (TSQL) Migration Guide - InterSystems ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

T<strong>SQL</strong> Functions6.1.60 RTRIMRTRIM(string)Removes trailing blanks from string.6.1.61 SIGNSIGN(num)Returns a value indicating the sign of num. If num is negative (for example, -32), it returns -1. If num is positive (forexample, 32 or +32), it returns 1. If num is zero (for example, 0 or -0), it returns 0.6.1.62 SINSIN(float)Sine: returns the sine of the angle specified in float. Thus 1 returns .841470984807...6.1.63 SPACESPACE(num)Returns a string of blank spaces of length num.6.1.64 SQRTSQRT(num)Returns the square root of num. Thus SQRT(9) returns 3.6.1.65 SQUARESQUARE(num)Returns the square of num. Thus SQUARE(9) returns 81.6.1.66 STRSTR(num,[length[,precision]])Returns a string of length characters. If the integer length is equal to or greater than the number of characters in the numericnum (including decimal point and sign characters), STR returns num converted to a string and padded with leading blanksto make the resulting string of length characters.If the optional integer precision is specified, num is truncated to the specified number of decimal digits before string conversion.If precision is omitted, num is truncated to its integer portion. If precision is larger than the number of decimaldigits, num is padded with trailing zeros before string conversion.46 <strong>Caché</strong> <strong>Transact</strong>-<strong>SQL</strong> (T<strong>SQL</strong>) <strong>Migration</strong> <strong>Guide</strong>

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

Saved successfully!

Ooh no, something went wrong!