ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1074. Very Short Problem

When should I output the sign?
Posted by Vinicius Fortuna 6 Sep 2002 05:04
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?
Posted by Denis Koshman 31 Aug 2008 16:46
You should output '-' sign when original number is negative and output contains at least one non-zero digit.