I am using a version of your code to format all the number fields:
add_filter('acf/format_value/type=number', 'fix_number', 30, 3);
function fix_number($value, $post_id, $field) {
$value = number_format($value);
return $value;
}
But it is also removing all the decimal places, what do I neeed to edit about this code to make it put thousand separators in but also keep the decimal places?