Article View: comp.std.c
Article #4386converting int to float (or double)
From: Guy Dallaire
Date: Tue, 21 Nov 1995 02:58
Date: Tue, 21 Nov 1995 02:58
19 lines
587 bytes
587 bytes
Hi,
Does that code guarantee that the value 3.0 (exactly) will be stored
in variable a and b ?
void test(void)
{
int i=3;
float f;
double d;
a=i;
b=i;
}
*** God only knows if God exists... ***
Technical Details
Message-ID:
<48r7sm$3hf@jersey.megatoon.com>Path:
arc1-ca.pugleaf.net!jersey.megatoon.com!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!jersey.megatoon.com!usenet From: dallaire@megatoon.com (Guy Dallaire) Newsgroups: comp.std.c Subject: converting int to float (or double) Date: Tue, 21 Nov 1995 02:58:17 GMT Organization: La Station MEG@Toon Message-ID: <48r7sm$3hf@jersey.megatoon.com> NNTP-Posting-Host: line203.megatoon.com X-Newsreader: Forte Free Agent 1.0.82