pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XMLhelper::parse_bool needed?


From: David Philippi
Subject: Re: XMLhelper::parse_bool needed?
Date: Fri, 11 Oct 2002 21:54:38 +0200
User-agent: KMail/1.4.1

On Friday 11 October 2002 21:05, Neil Hotmail wrote:
> stretch_x is a bool, but parse_float returns a float, is this intentional?

I'd guess so, see below.

> Would it not make more sense to use parse_int as this is (or should be) a
> simpler and quicker function, and integers are quicker than floats.

Assume a simple 0.03f - true if converted from float, false if converted from 
int regardless of wheter the parsing continues at the decimal point or not - 
it'd get rounded down to 0 aka false.

> Another alternative would be to add a specific parse_bool statement.

What should this one parse and how?

Bye David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]