@Test
public void testRoundToSignificantDigits()
{

    assertEquals( 0.1, MathUtils.roundToSignificantDigits( .1357, 1 ), DELTA );
    assertEquals( 0.14, MathUtils.roundToSignificantDigits( .1357, 2 ), DELTA );
    assertEquals( 0.136, MathUtils.roundToSignificantDigits( .1357, 3 ), DELTA );
    assertEquals( 0.1357, MathUtils.roundToSignificantDigits( .1357, 4 ), DELTA );
    assertEquals( -0.1, MathUtils.roundToSignificantDigits( -.1357, 1 ), DELTA );
    assertEquals( -0.14, MathUtils.roundToSignificantDigits( -.1357, 2 ), DELTA );
    assertEquals( -0.136, MathUtils.roundToSignificantDigits( -.1357, 3 ), DELTA );
    assertEquals( -0.1357, MathUtils.roundToSignificantDigits( -.1357, 4 ), DELTA );
    assertEquals( 0.14, MathUtils.roundToSignificantDigits( .1357, 2 ), DELTA );
    assertEquals( 1.4, MathUtils.roundToSignificantDigits( 1.357, 2 ), DELTA );
    assertEquals( 14.0, MathUtils.roundToSignificantDigits( 13.57, 2 ), DELTA );
    assertEquals( 140.0, MathUtils.roundToSignificantDigits( 135.7, 2 ), DELTA );
    assertEquals( -0.14, MathUtils.roundToSignificantDigits( -.1357, 2 ), DELTA );
    assertEquals( -1.4, MathUtils.roundToSignificantDigits( -1.357, 2 ), DELTA );
    assertEquals( -14.0, MathUtils.roundToSignificantDigits( -13.57, 2 ), DELTA );
    assertEquals( -140.0, MathUtils.roundToSignificantDigits( -135.7, 2 ), DELTA );
}