Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #24071

Re: floor()

From Eric Sosman <esosman@ieee-dot-org.invalid>
Newsgroups comp.lang.c
Subject Re: floor()
Date 2012-08-01 13:07 -0400
Organization A noiseless patient Spider
Message-ID <jvbnnn$c2$1@dont-email.me> (permalink)
References <5019226f$0$3111$ba620e4c@news.skynet.be> <i4gi18pcga6nps7u4duc364qjsc00td4te@4ax.com> <jvbg6o$g1s$1@dont-email.me> <l5hi18tr9k2mmi0us8a6old851s8eve552@4ax.com> <ufhi18d3cb39mugs2nvuqn4ic6u5pot1j8@4ax.com>

Show all headers | View raw


On 8/1/2012 11:12 AM, TheGunslinger wrote:
>
> That said, I am fully aware that that this is a "C" forum, and as
> indicated in my response, I searched with "C" as a parameter.

     Then why did you offer a C++ answer?  (As it happens, even
if the O.P. had been using C++ your answer would not have helped;
his problem was not with compilation, but with linking.)

> One of the bigger problems today is that many of the newer compilers
> are not strictly "C" systems.

     Not sure what you mean by this, or why it would matter.  If
Compiler X conforms imperfectly to the C Standard, does it then
make sense to answer as if for COBOL?

> And the website I listed is a C programming support site.

     No; the web site's *title* says its about C.  But the site
itself is not!  Here's the code from the page you linked to:

	//Example will output 5.9 rounded down
	#include <cmath>
	#include <iostream>
	
	using namespace std;
	
	int main()
	{
	  cout<<"5.9 rounded down: "<<floor(5.9);
	}

> So, if you have a problem with my response, perhaps you should really
> take it up with the website referenced.

     First, it wasn't very smart of you to offer a link to a
poor-quality web site.  (The site may have other fine qualities,
but for the question at hand its quality is poor.)  Second, your
own text in the body of your own message -- something you can't
blame on a web site -- was a C++ answer, not applicable to C.

> Disclaimer: Have a FLAME. Take it to somebody who cares! Here's your
> sign... "I am stupid!" , Jeff Foxworthy

     Earlier I wrote that I thought you were trying to be helpful.
I'm starting to doubt myself.

-- 
Eric Sosman
esosman@ieee-dot-org.invalid

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

floor() Andre <pas.mois@ailleur.be> - 2012-08-01 14:34 +0200
  Re: floor() Xavier Roche <xroche@free.fr.NOSPAM.invalid> - 2012-08-01 14:38 +0200
    Re: floor() Andre <pas.mois@ailleur.be> - 2012-08-01 16:47 +0200
    Re: floor() Andre <pas.mois@ailleur.be> - 2012-08-01 17:49 +0200
      Re: floor() Ike Naar <ike@sverige.freeshell.org> - 2012-08-01 15:53 +0000
        Re: floor() falk@rahul.net (Edward A. Falk) - 2012-08-01 18:26 +0000
        Re: floor() Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-08-02 16:30 +0000
          Re: floor() Keith Thompson <kst-u@mib.org> - 2012-08-02 14:58 -0700
      Re: floor() "Heinrich Wolf" <invalid@invalid.invalid> - 2012-08-01 17:56 +0200
      Re: floor() Noob <root@127.0.0.1> - 2012-08-01 17:58 +0200
      Re: floor() Keith Thompson <kst-u@mib.org> - 2012-08-01 10:31 -0700
        Re: floor() Ben Pfaff <blp@cs.stanford.edu> - 2012-08-01 10:43 -0700
          Re: floor() James Kuyper <jameskuyper@verizon.net> - 2012-08-01 13:51 -0400
            Re: floor() Ben Pfaff <blp@cs.stanford.edu> - 2012-08-01 10:59 -0700
              Re: floor() Noob <root@127.0.0.1> - 2012-08-02 10:04 +0200
              Re: floor() Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-08-02 16:33 +0000
              Re: floor() Craig Franck <craiglfranck@gmail.com> - 2012-08-03 20:49 -0400
  Re: floor() Noob <root@127.0.0.1> - 2012-08-01 16:47 +0200
    Re: floor() Andre <pas.mois@ailleur.be> - 2012-08-01 16:48 +0200
  Re: floor() TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-08-01 09:49 -0500
    Re: floor() Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-01 10:58 -0400
      Re: floor() TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-08-01 10:02 -0500
        Re: floor() James Kuyper <jameskuyper@verizon.net> - 2012-08-01 11:10 -0400
        Re: floor() TheGunslinger <mikiesrunsbaal.sec@sbcglobal.net> - 2012-08-01 10:12 -0500
          Re: floor() pete <pfiland@mindspring.com> - 2012-08-01 12:04 -0400
          Re: floor() James Kuyper <jameskuyper@verizon.net> - 2012-08-01 12:04 -0400
          Re: floor() Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-08-01 13:07 -0400
          Re: floor() Craig Franck <craiglfranck@gmail.com> - 2012-08-03 21:11 -0400

csiph-web