comp.lang.ada
 help / color / mirror / Atom feed
* Cannot summate small float values
@ 2010-11-20 12:47 tolkamp
  2010-11-20 13:49 ` Niklas Holsti
  0 siblings, 1 reply; 7+ messages in thread
From: tolkamp @ 2010-11-20 12:47 UTC (permalink / raw)


When I summate Float values smaller then 1.0E-6 then the summation is
not done.

Code Example:

X, Dx : Float;
X := 0.0;
Dx := 1.0E-7;
lwhile X <  1.0 loop
    X = X + Dx;
    Float_Io.Put(X, 3,9,0); New_Line;
end loop;



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-11-22 16:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-20 12:47 Cannot summate small float values tolkamp
2010-11-20 13:49 ` Niklas Holsti
2010-11-21 21:06   ` tolkamp
2010-11-21 21:18     ` Niklas Holsti
2010-11-22  1:23     ` Gautier write-only
2010-11-22  8:35     ` Julian Leyh
2010-11-22 16:30     ` Adam Beneschan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox