• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

float conversion error with f:convertNumber

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to get a price represented with 5 fraction digits and one integer digit, even if the price I want to show is just 1, it has to show as 1.00000
I tried to use a convertNumber but now I get conversion errors. Before I put the convert number tag in the input worked fine. The value is bound to a float.

Here's the code I use with the new code in bold:


Can anyone tell me what I'm doing wrong? Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic