Article View: borland.public.cppbuilder.database.ado
Article #4012Re: Question re: 'HUGE'
From: Vassiliev V.V.
Date: Thu, 18 Apr 2002 05:24
Date: Thu, 18 Apr 2002 05:24
68 lines
2735 bytes
2735 bytes
You should define HUGE such as
int HUGE = 0x7fffffff;
or
#include <values.h>
#define HUGE MAXINT
In addition, file values.h has some defines that can help you (do not forget
to include it)
#define MAXINT 0x7fffffff
#define HIBITS 0x80000000
#define HIBITI 0x80000000
#define MAXLONG 0x7fffffff
#define HIBITL 0x80000000
#define DMAXEXP 308
#define FMAXEXP 38
#define DMINEXP -307
#define FMINEXP -37
#define MAXDOUBLE 1.7976931348623158E+308
#define MAXFLOAT 3.40282347E+38F
#define MINDOUBLE 2.2250738585072014E-308
#define MINFLOAT 1.17549435E-38F
#define MAXLDOUBLE 1.1897314953572317649E+4932L
#define MINLDOUBLE 3.362103143112094E-4917L /* This isn't completely
accurate, but it will do for
now. The real value should
be: 3.362103143112094E-4932L
*/
Regards,
Vassiliev V.V.
http://www.oledbdirect.com
"Kevin Cain" <kevin@pelleas.org> �������/�������� � �������� ���������:
news:3cbd24c0$2_1@dnews...
> Trying my first bcc32.exe compile, I'm running into three E2451 errors,
such
> as:
>
> Error E2451 ivgrid.cpp 354: Undefined symbole 'HUGE' in function
> Object::inventor_read_coordinate3(istream &,const char *)
>
> I'm an archaeologist, not much of a C++ programmer...any kind words on
what
> silly mistake I'm making?
>
> TIA,
>
> - Kevin
>
> code starting at line 354 snipped below:
>
> wxmin = HUGE; // find 3-D bounding box
> wxmax = -HUGE;
> wymin = HUGE;
> wymax = -HUGE;
> wzmin = HUGE;
> wzmax = -HUGE;
>
>
>
>
Technical Details
Message-ID:
<3cbe5f37_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.wirehub.nl!newsfeed.media.kyoto-u.ac.jp!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3cbd24c0$2_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,f1c8b8f3f094b72d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-04-17 23:05:29 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3cbd24c0$2_1@dnews> Subject: Re: Question re: 'HUGE' Date: Thu, 18 Apr 2002 09:24:24 +0400 Lines: 70 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 62.118.128.83 Message-ID: <3cbe5f37_1@dnews> X-Trace: dnews 1019109175 62.118.128.83 (17 Apr 2002 22:52:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.wirehub.nl!newsfeed.media.kyoto-u.ac.jp!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews