Add table borders to specified cells only. On the Home tab, in the Paragraph group, click Show/Hide. Select the cells that you want, including their end-of-cell marks. Under Table Tools, click the Design tab. In the Table Styles group, click Borders, and then click the border that you want to add.
ROUND: â This function is used for rounding a number to a specified number of digits. For Example:Cell A1 is contains the number 456.25. To round the number, follow below given steps:-. Write the formula in cell B1.
If you just want to print a double value, with n digits after the decimal point, you can use something like. double dVal = 290.1234; System.out.printf (Value with 4 digits after decimal point %.4f, dVal); You can use Math.round to round your double value to nearest integers as : Math.round (dVal * 10000.0) / 10000.0; To make your value round to n decimal places you could multiply by [math]10^n[/math], and then divide by [math]10^n[/math]. You can use DecimalFormat or BigDecimal, have a look at this : Page on stackoverflow.com.