Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

float conversion error with f:convertNumber  RSS feed

 
Jamie Williams
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!