File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Float conversion: requires comma as floating point symbol. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Float conversion: requires comma as floating point symbol." Watch "Float conversion: requires comma as floating point symbol." New topic
Author

Float conversion: requires comma as floating point symbol.

Boris Romashov
Ranch Hand

Joined: Feb 23, 2009
Posts: 38
I have a float field on my form. When I type 1.1 (point as floating point symbol) it shows conversion error

But I do have a method
If I type 1,1 (comma as floating point symbol) everything goes well but if there were errors on the form, on the redisplayed form I see 1.1

Why Struts requires comma for conversion but uses point for displaying ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Float conversion: requires comma as floating point symbol.
 
Similar Threads
A legal but suspicious conversion
child classes
Assignment to float
why can a long assigned to float without casting
Widening conversion