Personally, I'd indent the code to make things more clear but that's a personal preference. Also, I'd have gone with a "Select Case" statement rather than lots of "if ... then ... elseif" statements -- you can always catch the division-by-zero separately.
|