home *** CD-ROM | disk | FTP | other *** search
- Program DollarST_Demo;
- {This program demonstrates the use of the procedure
- DollarString.
- DollarString is a
- turbo pascal function which formats a real variable
- as a string with imbedded commas separating thousands
- millions etc. Negative numbers are surrounded with
- parenthesis, as per the accounting notation.
-
- Author: Charles L. Jackson
- 3 Feb 1985
- Suite 450
- 1990 M St Washington D.C. 20036}
-
-
- {$IDollarSt.inc}
-
- begin
- writeln(Dollarstring(12345.67,2));
- writeln(Dollarstring(12345.67,2):10);
- writeln(Dollarstring(12345.67,2):20);
- writeln(Dollarstring(12345.67,1));
- writeln(Dollarstring(-12345.67,2));
- {here is how to get a dollarsign}
- writeln('$'+Dollarstring(12345.67,2));
- end.