[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
- Division in C++, Onno Garms, 2005/07/11
- Re: Division in C++, Robert Heller, 2005/07/11
- Re: Division in C++, Antoun Kanawati, 2005/07/12
- Re: Division in C++, Marcin 'Qrczak' Kowalczyk, 2005/07/12
- Re: Division in C++,
Gabriel Dos Reis <=
- Re: Division in C++, Michael Tiomkin, 2005/07/12
- Re: Division in C++, Florian Weimer, 2005/07/12
- Re: Division in C++, Henry Spencer, 2005/07/12