problem with doubles

Michael P. baseball.mjp at gmail.com
Sun Aug 10 08:31:07 PDT 2008


So I've attached the file for a very simple program I'm working on.
The problem comes from past contests questions, see this:

http://www.cemc.uwaterloo.ca/ccc/past/previous_contests.shtml

The problem I've having is with 2008 Junior problem 1. Every time with my code it says you are overweight, when it is supposed to say normal weight.
So I tried printing out the value I was comparing, and it said nan. Anyone know why?
-Michael P.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: junior108.d
Type: application/octet-stream
Size: 666 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20080810/fe241dc9/attachment.obj>


More information about the Digitalmars-d-learn mailing list