Languages SQL Numeric Manipulation  

Format integer strings (Function & SP)

download download  
important code information
author:
MisterD
minimum requirements:
Format integer strings (Function & SP) description

Formats a string representing a numeric or decimal value, to an input length of 6000 characters, and adds commas after every set of three numbers, on all values to the right of the decimal (if any) basically it takes a sting such as '1234567890.123' and returns '1,234,567,890.123'. Nice for a more "human-readable" display of large numbers, money values, etc. Can be utilized as either a function (SQL 2000) or a stored procedure, or cut out into your own script. Tested on SQL 2000 & 7, although it might work on 6.5 as well. CONVERT works well, I know, but this is more flexible, besides, I hate "black boxes", and would rather code it myself anyway :)


File List:
@PSC_ReadMe_346_5.txt1Kb
fnc_FormatIntegerString.sql2Kb
sp_FormatIntegerString.sql2Kb

Similar code
Dollars And Cents To English (Popularity: ) : This PL/SQL stored function returns the English language translation of the dollars and cents input. (Range: -999999999999999.99 through 999999999999999.99).
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 31
version
size in Kb 3
popularity   344/5827733
user rating 0/10
ad


New Code
Popular Code