Updated tripleDouble by adding parens around the ternary