Re: [info-performer] pfvXmlNode::getDouble() ?

New Message Reply Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 01/31/2003 14:44:14


Hi Terry,

pfvXmlNode::getDouble() and pfvXmlNode::getDoubleArray() have not been
implemented yet.

I have filed an rfe (#880194) and will implement them for pf3.1.

For the time being, you will have to do without, by parsing the string
returned
by pfvXmlNode::getString() (note that getString and getValue are exactly
the same).

eg:

double pfvXmlParseDouble( pfvXmlNode* xml ){
    double ret;
    sscanf( xml->getString(),"%lf",&ret);
    return ret;
}

Sorry about this.. and thanks for pointing it out.
ciao,
Paolo

Terry Welsh wrote:

>Is there any chance of having the routine pfvXmlNode::getDouble() ? I'm losing some precision using pfvXmlNode::getFloat(). I can write my own pretty easily, but it would come int handy.....
>
>Terry Welsh
>http://www.reallyslick.com
>

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 14:44:18 PST

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