Oh that's really smart! I never thought about it that way. And cause I'm having compiler problems at the moment, and because I'm at a place without a compiler.
Also is there a way to raise integers to a power? The pow command only takes decimals, and I'm trying to keep the output from being ugly with the .0 at the end.