Article View: borland.public.cppbuilder.nativeapi
Article #12239Convert int to double
From: Peter Rees
Date: Wed, 17 Dec 2003 04:42
Date: Wed, 17 Dec 2003 04:42
14 lines
1161 bytes
1161 bytes
A really basic question :-) I don't use float/double very often and have forgotten how to convert the data type. Can I safely convert an unsigned int to double by simply casting it; double dDouble = (double) uiInt ; I seem to recall there was a function like itod() or similar but I cannot find any reference to it. Thanks Peter
Technical Details
Message-ID:
<3fdfde83$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,93b2ecce2721f7fe,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-16 21:09:22 PST From: "Peter Rees" <peter@NOOSPAMMrees.co.nz> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Convert int to double Date: Wed, 17 Dec 2003 17:42:29 +1300 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 219.88.101.36 Message-ID: <3fdfde83$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1071636099 219.88.101.36 (16 Dec 2003 20:41:39 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail