To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1863
1862  |  1864
Subject: 
Re: Floating ponts ??
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 4 May 2001 06:52:04 GMT
Viewed: 
1436 times
  
Niels Sandholt Busch  <niels@diku.dk> wrote:
float p;

p = 0.3;

if(p == 0.4)
   do something;

I can't check this out now, but keep e-mailing me until I do.

-Kekoa
kekoa@graphics.stanford.edu



Message is in Reply To:
  Floating ponts ??
 
Hello everybody I am writing a program that uses floats, but I have some problems. If I write /******/ float p; p = 0.3; if(p == 0.4) do something; /******/ The if statement evaluates to true. Is there anything special I have to do to use floats in (...) (24 years ago, 3-May-01, to lugnet.robotics.rcx.legos)

5 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR