|
|
back to boardWhen should I output the sign? The problem statement says that the sample input -0.051e0 1 gives 0.0 as output, and not -0.0 Is that right or the sample is wrong? If it was -0.051e0 2 what should I output? -0.05 or 0.05? Thanks a lot Vinicius Fortuna IC-Unicamp Re: When should I output the sign? You should output '-' sign when original number is negative and output contains at least one non-zero digit. |
|
|