STR
Description
Returns character data converted from numeric data. The character data is right-justified, with a specified length and decimal precision. (STR in Transact-SQL).
Sample Source Pattern
Syntax
STR ( float_expression [ , length [ , decimal ] ] ) STR_UDF( numeric_expression, number_format )Arguments
numeric_expression: Float expression with a decimal point.
length (Optional): Length that the returning expression will have, including point notation, decimal, and float parts.
decimal(Optional): Is the number of places to the right of the decimal point.
Return Type
VARCHAR.
Examples
Input:
Output:
Input:
Output:
Last updated