Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!voder!pyramid!unify!csusac!ucdavis!deneb.ucdavis.edu!ez000453 From: ez000453@deneb.ucdavis.edu Newsgroups: comp.sys.mac.programmer Subject: Another ThinkC 4.0 Rookie Question Message-ID: <6341@ucdavis.ucdavis.edu> Date: 2 Jan 90 07:57:20 GMT Sender: uucp@ucdavis.ucdavis.edu Reply-To: ez000453@deneb.ucdavis.edu () Distribution: usa Organization: University of California, Davis Lines: 15 I can hardly believe I'm having so much trouble in ThinkC 4.0. In fact, I went back to LSC 3.02 to see if I get the same results but it wasn't particularly wanting to do that easily. Anyway I'm having a problem getting scanf to read in a decimal number (e.g., 0.0001) correctly. It would read in 0.1 losing all zeros after the decimal. I believe I have all the formats straight... scanf("%f",my_var); with the variable, my_var declared as float. Am I going to go crazy 'cos this is a simple thing? Nothing I'm writing is going to work until I get this simple problem fixed. Thanks! Maybe I should go back to Pascal? oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo oo o COLIN ONG Dept. Land, Air & Water Resources o o cgong@ucdavis.edu University of California, Davis CA 95616 o o ez000453@deneb.ucdavis.edu FULLY DISCLAIMED! o