appacademy / prep-work

preparatory material for interviewing with App Academy
291 stars 339 forks source link

fixes rounding problem and add a new test case to check the rounding pro... #5

Closed FongChin closed 11 years ago

FongChin commented 11 years ago

Originally, calling sci_not(2558) would return 3.66E3 instead of 2.57E8. Only the last digit should be rounded.

ruggeri commented 11 years ago

Thanks for the patch! I decided to remove this one (neither of our code works for sci_not(299) I think. Figured this one was too tedious.