I am working on a Wordpress website for a client to show several property listings and their associated prices. When I enter the number in the metabox created by the developer it strips out all decimals. So that if I enter 16.50 it immediately turns into 1650 when the page is saved. I want it to be able to show 2 decimals. I've done a bit of research but I'm not knowledgeable enough in PHP/Wordpress for it to make sense. The developer directed me to adjusting code for formatting it however that simply adds 2 decimals onto the number to show 1650.00 and not 16.50 like I want. The decimal is immediately stripped upon entering it in the metabox. I feel as though somewhere there is something defined that strips out all decimals from this entry field but I'm not sure how to counteract it.
Here is what happens in the backend:
I have very limited knowledge of PHP so if you have an idea how to help please explain in as simple and prescriptive terms as possible.
**** Edit ****
Here is the code I found for update_post_meta:
if($post_id) {
// Update Custom Meta
update_post_meta($post_id, '_ct_listing_alt_title', esc_attr(strip_tags($_POST['customMetaAltTitle'])));
update_post_meta($post_id, '_ct_price', esc_attr(strip_tags($_POST['customMetaPrice'])));
update_post_meta($post_id, '_ct_price_prefix', esc_attr(strip_tags($_POST['customMetaPricePrefix'])));
update_post_meta($post_id, '_ct_price_postfix', esc_attr(strip_tags($_POST['customMetaPricePostfix'])));
update_post_meta($post_id, '_ct_sqft', esc_attr(strip_tags($_POST['customMetaSqFt'])));
update_post_meta($post_id, '_ct_video', esc_attr(strip_tags($_POST['customMetaVideoURL'])));
update_post_meta($post_id, '_ct_mls', esc_attr(strip_tags($_POST['customMetaMLS'])));
update_post_meta($post_id, '_ct_rental_guests', esc_attr(strip_tags($_POST['customMetaMaxGuests'])));
update_post_meta($post_id, '_ct_rental_min_stay', esc_attr(strip_tags($_POST['customMetaMinStay'])));
update_post_meta($post_id, '_ct_rental_checkin', esc_attr(strip_tags($_POST['customMetaCheckIn'])));
update_post_meta($post_id, '_ct_rental_checkout', esc_attr(strip_tags($_POST['customMetaCheckOut'])));
update_post_meta($post_id, '_ct_rental_extra_people', esc_attr(strip_tags($_POST['customMetaExtraPerson'])));
update_post_meta($post_id, '_ct_rental_cleaning', esc_attr(strip_tags($_POST['customMetaCleaningFee'])));
update_post_meta($post_id, '_ct_rental_cancellation', esc_attr(strip_tags($_POST['customMetaCancellationFee'])));
update_post_meta($post_id, '_ct_rental_deposit', esc_attr(strip_tags($_POST['customMetaSecurityDeposit'])));
//Update Custom Taxonomies
wp_set_post_terms($post_id,array($_POST['ct_property_type']),'property_type',true);
wp_set_post_terms($post_id,array($_POST['customTaxBeds']),'beds',true);
wp_set_post_terms($post_id,array($_POST['customTaxBaths']),'baths',true);
wp_set_post_terms($post_id,array($_POST['ct_ct_status']),'ct_status',true);
wp_set_post_terms($post_id,array($_POST['customTaxCity']),'city',true);
wp_set_post_terms($post_id,array($_POST['customTaxState']),'state',true);
wp_set_post_terms($post_id,array($_POST['customTaxZip']),'zipcode',true);
wp_set_post_terms($post_id,array($_POST['customTaxFeat']),'additional_features',true);
// Redirect
wp_redirect( home_url() . '/?page_id=' . $view ); exit;
}