delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/14/13:45:53

Date: Wed, 14 Apr 1999 13:44:18 -0400
Message-Id: <199904141744.NAA22164@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <3714C932.1E5E452B@spektracom.de> (message from Andrej Aderhold
on Wed, 14 Apr 1999 18:58:26 +0200)
Subject: Re: float is not working
References: <3714C932 DOT 1E5E452B AT spektracom DOT de>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> float m = 1 / 2;

Because 1 and 2 are integers.  Try 1.0 / 2.0

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019