| delorie.com/archives/browse.cgi | search |
| From: | sime AT fly DOT cc DOT fer DOT hr (S. Mikecin) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Turbo Pascal's round equivalent... |
| Date: | 12 Nov 1997 11:19:38 GMT |
| Organization: | FER, Croatia |
| Lines: | 14 |
| Distribution: | world |
| Message-ID: | <64c3ca$6fe@bagan.srce.hr> |
| References: | <01bcec33$c3f91720$LocalHost AT stealth> |
| Reply-To: | sime AT fly DOT cc DOT etf DOT hr |
| NNTP-Posting-Host: | fly.cc.etf.hr |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Xerxes (xer DOT xes AT wxs DOT nl) wrote:
: I'm new to DJGPP and C/C++ and i'd like to know whether there is a round
: function in DJGPP and how it's named.
: Thanks in advance, and excuse me for my poor english.
I don't think it is implement. But you could use it if you put this in the
beggining of your program:
#define round(x) ((int)((x)+0.5))
--
// E-mail: smikecin AT bigfoot DOT com
// URL: http://fly.cc.fer.hr/~sime
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |