Hi Johannes and first of all thank you very much for your contribution. I h

Hi Johannes and first of all thank you very much for your contribution. I have several float values in database with a lot of decimal values, more than 10.

I want to show 6 decimal values but I always view only 3 as maximum. It works when using 1, 2, or 3 decimal places, but when using 4 or more, I always view 3 decimals. It seems as if there would be a limit of visualizing 3 decimals as maximun.

new NumeralFieldFormatter(“.”, “,”, 6).extend(priceTextField);

I am using Vaadin 14.3.7 and I have tried with these component versions: 4.1.4, 4.2.0 and 5.1.0

Any idea?

Thanks!!
Fermin

Hi. I tested with your sample, and it works for me. Would you have a more extensive code sample to share in https://github.com/johannesh2/textfieldformatter/issues

Johannes, I found the error in my DoubleToStringConverter, it seems that java NumberFormat, when NumberFormat.getInstance() overrites setMaximunFractionDigits to 3.

Similar to this post: https://stackoverflow.com/questions/24192416/numberformat-seems-to-ignore-decimal-places-in-android-but-only-for-us-dollar

Thanks and Merry Christmas!!