Good Mornig Everyone,
I'm currently working on a client project which involves taking a order or sandwiches and breaking in down into the following ratio :-
40% (Vegeterian) sandwiches
30% (Meat) sandwiches
30% (Fish) sandwiches
If there is a remainder then that is coverted to a vegiterian sandwich.
What the customer would do is order the sandwiches, then the office would prepare the order based on vegeterians, meat and fish.
From the above if someone orders 8 sandwiches, I get:-
40% of 8 = 3.2 - Veg
30% of 8 = 2.4 - Meat
30% of 8 = 2.4 - Fish
How can I work these percentages as whole number rather than decimals. or can someone guide me in terms of a access function to achieve results than I'm after.
What would be the best way to do this? Any suggestion?
Thanks in advance.
I'm currently working on a client project which involves taking a order or sandwiches and breaking in down into the following ratio :-
40% (Vegeterian) sandwiches
30% (Meat) sandwiches
30% (Fish) sandwiches
If there is a remainder then that is coverted to a vegiterian sandwich.
What the customer would do is order the sandwiches, then the office would prepare the order based on vegeterians, meat and fish.
From the above if someone orders 8 sandwiches, I get:-
40% of 8 = 3.2 - Veg
30% of 8 = 2.4 - Meat
30% of 8 = 2.4 - Fish
How can I work these percentages as whole number rather than decimals. or can someone guide me in terms of a access function to achieve results than I'm after.
What would be the best way to do this? Any suggestion?
Thanks in advance.