I have this snippet of code that checks to see if a user wants to order an amount of brochures for a single store, or for multiple stores. It works fine with 10,000 or more brochures, but if it is less than that it formats the number wrong. For example if a store ordered 6,000 brochures for 5 stores, I get this in the database, that each store should be receiving 1.2 brochures, when it should be 1200 brouchres. Please help! And thanks in advance.
//This is taking the quantity and dividing it by the stores if the user selects the total for all stores option
if ($print_type == "Per Store"){
$new_quantity = $quantity;
} else {
$new_quantity = ($quantity / $count);
}
$quantityformatted = number_format($quantity);