| delorie.com/archives/browse.cgi | search |
| Date: | Sun, 19 Jan 1997 10:08:31 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | Michael R Weholt <awnbreel AT panix DOT com> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: modulus operation with floats requires emulator? |
| In-Reply-To: | <5br7o7$p2e@news1.panix.com> |
| Message-ID: | <Pine.SUN.3.91.970119100733.22250S-100000@is> |
| MIME-Version: | 1.0 |
On Sat, 18 Jan 1997, Michael R Weholt wrote: > When I try to use the modulus operation, I can only get it to > work using integers, not floats. When I try it with floats, the > debugger reports: "Error: invalid operands to binary %". I get this > message even when I try including math.h, or adding the -lm link > option. Use the library function `fmod'. The `%' operator is only for integers.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |