* is there a round() function in gcc+ ? thanks, eom
@ 2002-07-30 18:57 dbisnath
0 siblings, 0 replies; 2+ messages in thread
From: dbisnath @ 2002-07-30 18:57 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
---------------------------------------
This message was sent using Postaci Webmail. (http://www.trlinux.com)
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: is there a round() function in gcc+ ? thanks, eom
[not found] <616BE6A276E3714788D2AC35C40CD18D7408D5@whale.softwire.co.uk>
@ 2002-07-31 1:35 ` Rupert Wood
0 siblings, 0 replies; 2+ messages in thread
From: Rupert Wood @ 2002-07-31 1:35 UTC (permalink / raw)
To: dbisnath; +Cc: gcc-help
dbisnath wrote:
> is there a round() function in gcc+ ?
This depends on which runtime library you're using and not on GCC. The
best thing to do, if you're on a unix system, is to look in the manual
pages - type 'man round' and see if you get anything. Alternatively, you
can use less or grep to search the system header files in /usr/include.
However, there isn't one available in BSD C-libraries (on FreeBSD, etc.)
or Solaris's C library. It does appear in the most recent C-standard and
also in a recent glibc (on GNU/Linux, etc.) but I don't know how recent
and available it will be.
If you don't have it available, you might consider using floor(), ceil()
or rint().
Rup.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-31 8:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-30 18:57 is there a round() function in gcc+ ? thanks, eom dbisnath
[not found] <616BE6A276E3714788D2AC35C40CD18D7408D5@whale.softwire.co.uk>
2002-07-31 1:35 ` Rupert Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).