From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: OTP: European decimal notation (Was Re: Problems with paranoia.c and pow(0,0)) Date: Wed, 29 Apr 1998 18:59:05 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 32 Message-ID: <3547B0B9.2B05@cs.com> References: <2cd092ba DOT 353f5d4a AT aol DOT com> NNTP-Posting-Host: ppp123.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Alex wrote: > > Hi you all and K.B. Williams, > I am using Djgpp in this days I had complete a graphical program witch > used the function pow(x,y). > I got always floating point exception, first I didn't know what the > problem was, but later I discovered the pow(0,0) is not number that is > uncountable. Try it on a calculator You will see! This is off-topic, but I'm curious about something. I know that the European custom is to write decimal numbers using a comma for the decimal point and a period for the thousands separator, whereas the American (and British, AFAIK) custom is the reverse. However, every program I've ever seen that deals with decimal numbers does not recognize commas. My pocket calculator certainly doesn't have a comma key. So, is there a special language variant of C/C++ for Europeans where the role of ',' and '.' are reversed, and special European calculators and numeric keypads? Or do you just have to remember to type numbers in the American style when you program? It could be extremely confusing either way. Thanks. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | ICQ UIN#: 7406319 | http://www.cs.com/fighteer/ | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | ---------------------------------------------------------------------