[Top][All Lists]
[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
- Bugs on Savannah, Gervase Lam, 2002/10/09
- Re: Bugs on Savannah, Gervase Lam, 2002/10/10
- Re: Bugs on Savannah, Gervase Lam, 2002/10/11
- Intentional code?, Neil Hotmail, 2002/10/11
- Re: Intentional code?, David Philippi, 2002/10/11
- Re: Intentional code?, David Philippi, 2002/10/11
- Re: Intentional code?, Neil Hotmail, 2002/10/11
- XMLhelper::parse_bool needed?, Neil Hotmail, 2002/10/11
- Re: XMLhelper::parse_bool needed?,
David Philippi <=
- Re: XMLhelper::parse_bool needed?, Neil Hotmail, 2002/10/11
- Re: XMLhelper::parse_bool needed?, Ingo Ruhnke, 2002/10/11
- Re: Intentional code?, Neil Hotmail, 2002/10/11
- Re: Intentional code?, David Philippi, 2002/10/11
- Re: Intentional code?, Ingo Ruhnke, 2002/10/11
- Re: Intentional code?, David Philippi, 2002/10/11
- Re: Intentional code?, David Philippi, 2002/10/11