Search Results

Search: Posts Made By: MaroonedAlien
11
2,402
Posted By MaroonedAlien
As in the Perl example, just use integer...
As in the Perl example, just use integer arithmetic and you'll be fine. Separate dollars from cents at the end of your script.
11
2,402
Posted By MaroonedAlien
Yes, lots of ways to do this. One example in...
Yes, lots of ways to do this. One example in Perl (not using error checking to keep it simple):

open(IN, "<my_file.txt");
while($in = <IN>)
{
$sum += $in;
}
$sum =~ /(\d+?)(\d\d)$/;...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy