delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/19/16:16:01

From: radon AT swipnet DOT se (Rikard Björklind)
Newsgroups: comp.os.msdos.djgpp
Subject: round
Date: Mon, 19 Jan 1998 21:00:20 GMT
Organization: A customer of Tele2
Lines: 7
Message-ID: <34c3be38.741112@nntpserver.swip.net>
NNTP-Posting-Host: nn1.swip.net
Cache-Post-Path: nn1!s-298159 AT dialup183-1-53 DOT swipnet DOT se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I want to know how to assign a double value to an int. Like this for
example:

int hej = (PI*sin(34)/43);

I want the value rounded. Please help me I'm a beginner =).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019