This topic is locked

Remove decimals from 'Number' fields

10/26/2009 7:21:11 PM
PHPRunner General questions
M
masq author

Within the editor, I set a field property to view as a 'Number'. This seems to add the commas in the value that I want, but also adds two decimal places.
How do I remove the decimal values? I need the value to only show whole numbers.
Thanks

Sergey Kornilov admin 10/27/2009

I suggest to set 'View as' type of this field to empty. In this case numbers will be displayed 'as is'.

M
masq author 10/27/2009

so how would I make sure the field displays the values with commas included?

J
Jane 10/28/2009

Hi,
you can remove decimal places for numbers (Number option on the "View as" settings dialog) editing generated include/locale.php file:

$locale_info["LOCALE_IDIGITS"]="2";