Article View: alt.comp.lang.learn.c-c++
Article #759Re: float precision
From: Bart v Ingen Schenau
Date: Mon, 17 Apr 2000 00:00
Date: Mon, 17 Apr 2000 00:00
37 lines
2148 bytes
2148 bytes
On Thu, 13 Apr 2000 14:58:57 GMT, Andreas Kahari <andkaha@my-deja.com> wrote: >Why not use 'int' or 'long int'? > >Limits are declared in <limits.h> (standard?). This is what it says on >my system: <limits.h> (or <climits> in C++) is a standard header, but the values of the macro's are implementation defined. The standard defines only some minimum limits, like: int holds at least the values -32767 to 32767 (16 bits signed) unsigned int holds at least the values 0 to 65535 (16 bits unsigned) etc. > >#define INT_MAX 2147483647 /* max value of an "int" */ >#define UINT_MAX 4294967295U /* max value of an "unsigned >int" */ >#define LONG_MAX 9223372036854775807L > /* max value of a "long int" */ > >#define DBL_MAX 1.7976931348623157E+308 /* max decimal value of >a */ > /* "double" */ > >(very system dependent I guess) Yes. > >/A > Bart v Ingen Schenau -- FAQ for acllc-c++: http://www.raos.demon.co.uk/acllc-c++ Please reply to the group, so others can benefit also
Technical Details
Message-ID:
<38fbf036.11015234@news.usenetserver.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38F5D7E6.153591F2@cyberdude.com> <8d4nb6$h8m$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,fcf1bc31a1ccc99f X-Google-Attributes: gid109fba,public X-Google-Thread: 114592,fcf1bc31a1ccc99f X-Google-Attributes: gid114592,public X-Google-Thread: fdcad,fcf1bc31a1ccc99f X-Google-Attributes: gidfdcad,public From: b.vaningenschenauNOSPAM@mail.student.utwente.nl (Bart v Ingen Schenau) Subject: Re: float precision Date: 2000/04/17 Message-ID: <38fbf036.11015234@news.usenetserver.com> X-Deja-AN: 612183801 Content-Transfer-Encoding: 7bit References: <38F5D7E6.153591F2@cyberdude.com> <8d4nb6$h8m$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: support@usenetserver.com Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. MIME-Version: 1.0 NNTP-Posting-Date: Mon, 17 Apr 2000 07:11:51 EDT Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c++,fr.comp.lang.c++