55d Subj : Re: using cin returns a floating point overflow when entering a float To : borland.public.cpp.borlandcpp From : "Jeff Baker" Date : Wed Apr 14 2004 06:27 am I'm running Borland C++ 5.02 under Windows 98 ad this code seems to work fine in an EasyWin and DOS project; #include #include int main(void) { float input; cout << "Please enter a float: "; cin >> input; cout << "You entered " << input << endl; getch(); return(0); } What's your computer specs? - Jeff "Bruce Salzman" wrote in message news:4040d0ae$1@newsgroups.borland.com... > > When I use cin in a program to enter a number like 1.1 it returns a > floating > > point overflow, I'm pretty sure it has nothing to do with division by zero > > at least not in the code I have written, mayby it's in a lib somewhere but > > that doesn't make sense also I guess. > > Can you post a small example that compiles to illustrate your problem? > > > > > I use borland C++ 5.01 and have the path installed I'm programming an > > Easywin appl. Since I wasn't able to install the program under XP (mayby > > someone knows how to do this??) I'm running it in win98se > > I have installed BC++ 5.02 on XP without problems. What goes wrong for you? > > Regards, > Bruce > > . 0