Date: Sun, 12 Apr 1998 11:48:38 +0300 (IDT) From: Eli Zaretskii To: Michael Phelps cc: djgpp AT delorie DOT com Subject: Re: Differences between -lm and not -lm In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.