Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #10939
| From | Thomas Boell <tboell@domain.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: float |
| Date | 2011-10-17 21:50 +0200 |
| Organization | albasani.net |
| Message-ID | <20111017215005.66a8d93d@arcadia> (permalink) |
| References | <fa3c19f8-c2ed-4d12-b18e-e40b574cdd31@g16g2000yqi.googlegroups.com> |
On Mon, 17 Oct 2011 12:40:40 -0700 (PDT)
ramtin <tom.t.2090@gmail.com> wrote:
> hi all ,
>
> #include "stdafx.h"
> #include <stdio.h>
> using namespace System;
>
> int main(array<System::String ^> ^args)
> {
> float d = 4 / 3 ;
> printf("%f",d);
> return 0;
> }
>
> when you run this ,it will be 1 in d ,but it should be 1.3333 in it !!!
What language is it?
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
float ramtin <tom.t.2090@gmail.com> - 2011-10-17 12:40 -0700
Re: float Dombo <dombo@disposable.invalid> - 2011-10-17 21:47 +0200
Re: float Thomas Boell <tboell@domain.invalid> - 2011-10-17 21:50 +0200
Re: float Sjouke Burry <S@P.NL> - 2011-10-26 23:13 +0000
Re: float Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-10-17 13:05 -0700
Re: float Ian Collins <ian-news@hotmail.com> - 2011-10-18 09:23 +1300
Re: float Leigh Johnston <leigh@i42.co.uk> - 2011-10-17 21:25 +0100
Re: float Leigh Johnston <leigh@i42.co.uk> - 2011-10-17 21:31 +0100
Re: float Leigh Johnston <leigh@i42.co.uk> - 2011-10-17 21:33 +0100
Re: float Ian Collins <ian-news@hotmail.com> - 2011-10-18 09:35 +1300
Re: float ramtin <tom.t.2090@gmail.com> - 2011-10-17 13:49 -0700
Re: float Ian Collins <ian-news@hotmail.com> - 2011-10-18 09:19 +1300
Re: float "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-10-18 00:55 +0100
Re: float SG <s.gesemann@gmail.com> - 2011-10-18 05:34 -0700
Re: float Christopher <cpisz@austin.rr.com> - 2011-10-27 14:29 -0700
Re: float Dombo <dombo@disposable.invalid> - 2011-10-28 18:14 +0200
Re: float 88888 Dihedral <dihedral88888@googlemail.com> - 2011-10-28 21:06 -0700
Re: float red floyd <no.spam.here@its.invalid> - 2011-10-28 22:14 -0700
Re: float 88888 Dihedral <dihedral88888@googlemail.com> - 2011-10-28 23:27 -0700
Re: float red floyd <no.spam.here@its.invalid> - 2011-10-29 08:24 -0700
Re: float ptyxs <kerloch@gmail.com> - 2011-10-30 01:40 -0700
Re: float Ian Collins <ian-news@hotmail.com> - 2011-10-30 22:27 +1300
csiph-web