How can I truncate a double to only two decimal places in Java? Tags: decimalformatdoublejavatruncate