@Test
public void shouldKeepSignificantFigures() {

    assertThat(ops.keepSignificantFigures(0, 2), is(0));
    assertThat(ops.keepSignificantFigures(1201234, 5), is(1201200));
    assertThat(ops.keepSignificantFigures(1201254, 5), is(1201300));
    assertThat(ops.keepSignificantFigures(1201234, 4), is(1201000));
    assertThat(ops.keepSignificantFigures(1201234, 3), is(1200000));
    assertThat(ops.keepSignificantFigures(1201234, 2), is(1200000));
    assertThat(ops.keepSignificantFigures(1201234, 1), is(1000000));
    assertThat(ops.keepSignificantFigures(-1320, 2), is(-1300));
}