Thread: Classes
View Single Post
Old Apr 28th, 2005, 11:16 PM   #6
hydroxide
Programmer
 
Join Date: Apr 2005
Posts: 73
Rep Power: 4 hydroxide is on a distinguished road
1/ Don't use "txt" to hold a number - it's confusing.
2/ Rather than adding and removing digits from the left of a number, add and remove them from the right. This will allow you to use multiplication and division rather than conversions to strings
3/ You can replace the smallest and biggest code with calls to min() and max()

--OH.
hydroxide is offline   Reply With Quote