aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.