Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changes between Version 1 and Version 2 of FormatNumberExample/D2

Show
Ignore:
Author:
Andrej08 (IP: 78.2.39.16)
Timestamp:
09/07/10 02:56:10 (14 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FormatNumberExample/D2

    v1 v2  
    55== Description == 
    66 
    7 This function takes a number as a char array and inserts commas in the right places; "1000" becomes "1,000", etc.; for numbers smaller than that, it just returns the original
     7This function takes a number as a char array and inserts commas in the right places; "1000" becomes "1,000", etc.; for numbers smaller than that, it just returns the original number
    88 
    9 Some overloads were added so that some integers can be converted, too. Negative values and floating-point numbers (which aren't handled yet) would require more code
     9Some overloads were added so that some integers can be converted, too. Negative values and floating-point numbers are not handled
    1010 
    1111== Example ==