Re: a C question

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/21/2001 07:25:51


P.S.

I'm sure that last suggestion with the '*' won't work now. The %*.2
specifies the number of characters before the decimal point only. I
don't think there's a way to explicitly format as requested.

Cheers,Angus.

Olivier BILLARD wrote:
>
> thank you
>
> > Read the man pages they tell you this
> I have done this and on several OS (irix6.5, Solaris and MSVC)
> >
> > but ("%.2E")
>
> this doesn't answer the question
> let say I have 12.234567
>
> %.2E will give 1.23E001
> %E will give 1.234567E001
>
> and I nedd 1.23 E 01
> I need TWO digits on the E01 (not 001) exponent
> I have to feed old hardware with this...
>
> Anyway, I will re write a fprintf function for the float.....
>
> O BILLARD - FRANCE - obillard++at++free.fr
> Private: La croix Rolland - 22300 ROSPEZ - 33 (0) 6 68 73 54 92
> Office: Airtria - ZA Aeroport - 22300 LANNION - 33 (0) 2 96 05 82 72
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"Whenever there is a conflict between human rights and property rights, human rights must prevail." --Abraham Lincoln


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jun 21 2001 - 07:23:47 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.