I have this function --
First of all, is digits(int) the correct way to format decimals (I only want two digits to the right of the decimal)? The compiler says I need a struct/class/union to the left of digits(). I'm not sure what I would use for that..Code:double Item::getPrice() { return (price + (price * 0.07)).digits(2); }