| delorie.com/archives/browse.cgi | search |
| Date: | Sun, 12 Apr 1998 11:48:38 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | Michael Phelps <loverns AT welchlink DOT welch DOT jhu DOT edu> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Differences between -lm and not -lm |
| In-Reply-To: | <Pine.SOL.3.96.980409150133.20230A-100000@welchlink.welch.jhu.edu> |
| Message-ID: | <Pine.SUN.3.91.980412114735.3322E-100000@is> |
| MIME-Version: | 1.0 |
On Thu, 9 Apr 1998, Michael Phelps wrote: > number %= (int)pow(10, digit_to_start_with); > number /= (int)pow(10, (digit_to_start_with - length)); Don't forget that 10 doesn't have an exact representation as a floating-point number. So it is subject to round-off errors.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |