%sequal modifier

From: Rob Somers (uberkermit_at_I-DISLIKE-SPAM.golden.net)
Date: 03/30/04


Date: Mon, 29 Mar 2004 20:58:27 -0500

Hi, I just came across the %sequal printf modifier, and I tried searching
the comp.lang.c group for any more info on it. I turned up about two posts
that used it, but no explanations as to what was going on with it. Also I
tired the web to find out more info, but it turned up nothing. Neither did
my manual pages. It seems to be a really obscure format specifier, but I
am hoping someone here can help me understand it, and its use.

I will add a snippet of code from comp.lang.c where I have seen it used:

main()
{
 double d1, d2, atof();
 
 d1 = atof(s1);
 sprintf(s2,"%.60g",d1);
 sscanf(s2,"%lf",&d2);
 
 printf("d1 and d2 are %sequal!\n", d1 == d2 ? "" : "NOT ");
 printf("s1 = %s\nd1 = %.60g\ns2 = %s\nd2 = %.60g\n",
    s1,d1,s2,d2);
  
}

the entire post can be found here:

http://groups.google.com/groups?q=%25sequal+group:comp.lang.c.*&hl=en&lr=&ie=UTF-8&group=comp.lang.c.
*&selm=17814%40brahms.udel.edu&rnum=5&filter=0

any help appreciated.

Rob Somers



Relevant Pages

  • Re: I connected my Pro Max Monitor without a Isolation Transformer, and now
    ... from him by searching usenet, so many thanks Ken), but the post just seemed ... has given other collectors before you lay your critique. ... I read all the posts by ALL the veterans - ... understand that people sometimes make mistakes. ...
    (rec.games.video.arcade.collecting)
  • Re: Richard Heathfields lie
    ... that it "seems" to him that there were no posts in comp.risks after ... searching it: but, the simplest possible search provides 37 hits. ... and it seems specifically Heathfield dozens at least, you have never, ... lawyers and out of court. ...
    (comp.lang.c)
  • Re: Service Manuals PDFs for Test Equipment available
    ... Thanks for pointing out those brackets. ... profit" posts for such "special treatment", and go to so much trouble ... pointing to a list of PDF manuals that are for sale (which ... JUST so people who are searching for ONLY paper manuals ...
    (sci.electronics.repair)
  • Re: Disappearing Posts
    ... I'm certainly not an expert in the CDO interface. ... , but I see nothing in your posts to indicate ... Searching the MS groups and using Google may give different results ...
    (microsoft.public.excel.programming)
  • Re: looking for learning videos/books
    ... Try searching this group for the term "books." ... reading posts on this group. ... it can be a very useful tool for locating information on a specific ...
    (rec.pyrotechnics)