Absolute
- Posted by Aidan Bindoff <abindoff at ONE.NET.AU> Jun 11, 2000
- 581 views
Lucius, thanks for the apology. It's fine if you're having a bad time to vent some anger - I've been observing this list long enough to know you don't usually get that cranky. Please understand that I am completely uneducated (only to Year 12 in Australia - which is high school in the US) and only program to save time with my stock market analysis, and a few other small projects. I say this in advance because the following questions may seem ignorant. If x is the largest possible atom, what happens when your program calls x+1? Or 2x? Or any other equation that will make x bigger than x already is? Obviously the program will crash. Are there methods commonly used to avoid this happening if it is possibly likely (e.g if x>too_big then approximate(x) and inform) or do we just hope it doesn't happen? How many other algorithms that we use every day might possibly crash? I, for one, will only be using the absolute() function you suggested from now on. I'm interested to know if you could suggest any more. Kind Regards, Aidan