Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!sunic!draken!luis From: luis@octopus.tds.kth.se (Luis Barriga) Newsgroups: comp.sys.sequent Subject: Problem reading float with scanf Message-ID: Date: 16 Feb 90 18:03:25 GMT Sender: news@nada.kth.se Organization: The Royal Inst. of Technology (KTH), Stockholm, SWEDEN. Lines: 28 Here is a problem discovered by a student. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #include float h; main() { printf(" give step: "); scanf("%f",&h); } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ It loggs you out while readind a number starting with zero and point, i.e "0.". All other numbers like .73737 .6464 123.45 1.2233 5.666 etc. are read OK. Has anybody had this problem? P.S. I've tested this same program on a VAX and SUN and I was logged out as well while giving a number 0. P.P.S. I wanted to post this letter to all other concerned groups as well but I had already sent it );-) -- ________________________________________________________________________| Luis Barriga The Royal Institute of Technology | Dep. Computer systems (TDS) | e-address: luis@tds.kth.se S-100 44 Stockholm | SWEDEN | ________________________________________________________________________|