[Nickle]scanf can't scan negitive numbers?

Craig Dawson cxd@craigdawson.org
Mon, 2 Jul 2001 09:46:59 -0700 (PDT)


Greetings,

 I don't know if this is a bug (or am I missing something).
The following nickle code won't take a negitive number:

printf("type in negitive number:\n");
real negNum;
scanf("%f", &negNum);
printf("your number is %f\n", negNum);

       Thanks for any help,

              Craig


=====

---------------------------------

Craig Dawson at cxd@CraigDawson.org


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/