That shows an ingenuity and balls of steel that not many programmers would commit to... however, that hardly excuses the fact that they're using bash to perform decimal calculations!! Why was this solution the best available? Where was bc?What kind of stripped down environment could this be running in that it didn't have any program with the facility to do non-integer arithmetic?