help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Division in C++


From: Gabriel Dos Reis
Subject: Re: Division in C++
Date: 12 Jul 2005 06:45:32 -0400

"Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl> writes:

| > - if (static_cast<double>(a/b)<=c)  endless loop
|
| This looks like a bug in the compiler, a cast should cut off excess
| precision.
|
| gcc has an option to turn this off: -ffloat-store

But, it does not work all the time.  Search for GCC mailing list
archives and bug database.

--
                                                       Gabriel Dos Reis
                                           gdr@integrable-solutions.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]