I would like the result of this to return correct to 2 decimal places.
ie price = 4.35
ie weightGrams = 233
public double pricePerHundredGrams()
{
return (price * 100) / weightGrams;
}
I would like the calculation to return as 1.86 not 1.86695279....