comp.lang.ada
 help / color / mirror / Atom feed
From: tolkamp <f.tolkamp@gmail.com>
Subject: Cannot summate small float values
Date: Sat, 20 Nov 2010 04:47:15 -0800 (PST)
Date: 2010-11-20T04:47:15-08:00	[thread overview]
Message-ID: <b93fb676-b1f7-4b1c-966a-ef5076ad173f@k22g2000yqh.googlegroups.com> (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;



             reply	other threads:[~2010-11-20 12:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-20 12:47 tolkamp [this message]
2010-11-20 13:49 ` Cannot summate small float values 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
replies disabled

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