[aclug-L] Re: Formatting numbers in Perl!
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Steven Saner wrote:
>
> You can use the sprintf, which is the same as printf except that it
> will print to a string. So something like:
>
> $sub_total = sprintf "%.2d", $price * $quantity;
>
Thanks. Yea i have found some info about sprintf and alreaduy using it.
Now how about left or right justifying? Say I have the following..
99.99 124.50 6780.98
I want them to line up like this:
99.99
124.50
6780.98
Can i do this with sprintf?
Thanks.
Moe
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
- [aclug-L] Formatting numbers in Perl!, Mohammad Islam, 2000/10/20
- [aclug-L] Re: Formatting numbers in Perl!, Steven Saner, 2000/10/20
- [aclug-L] Re: Formatting numbers in Perl!,
Mohammad Islam <=
- [aclug-L] Re: Formatting numbers in Perl!, Jesse Kaufman, 2000/10/20
- [aclug-L] Re: Formatting numbers in Perl!, Jeremy King, 2000/10/20
- [aclug-L] Re: Formatting numbers in Perl!, Jeff Schaller, 2000/10/20
- [aclug-L] Re: Formatting numbers in Perl!, Steven Saner, 2000/10/20
- [aclug-L] Re: Formatting numbers in Perl!, Jeff Schaller, 2000/10/20
|
|