Number field and decimals | WordPress.org

[ad_1]

Hi, I really need to be able to enter a decimal value into a number field.

Currently the field is set to allow decimals to 2 places … but it does not accept a decimal value and simply rounds to an integer.

I saw another similar post, now closed, that said yes this is a good idea but no action seems to have been taken. Surely this is pretty basic and essential? Esp as I need to use the decimal value in a calculation.

The work around to use a currency field works but I really don’t want the currency symbol as this is a length measurement. I’d also rather not have to use css to try and remove it as that complicates things and makes handing over to others more problematic. Maybe add a Currency of None to the selection list so that nothing is then displayed in the field?

Thanks
Alan

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer