How can I set number of significant digits to three in Java? Reason to this is that I have exercise where program has to solve linear equation system with Gauss method using only three significant digits in calculation. Exercise has to be returted by 20.10.2008 12 O'clock Finnish time.