[jdom-interest] re: floats

philip.nelson at omniresources.com philip.nelson at omniresources.com
Mon Apr 23 19:59:06 PDT 2001

> In my application I can return strings via setText() but how 
> does one return
> a float.  Floats will not be returned through the setText 
> command.  i have
> looked through the javadoc and cannot find such a reference.

I always need to have my java reference around to remember this but isn't it

Float f = Float.parseFloat(yourElement.getText());

Personally, I think number conversions in java are a pain.

More information about the jdom-interest mailing list