public static Formatter forNumbers(@Nonnull String format) {
        return new NumberFormat(format);
    }
@Test
    public void testOverflow() {
        Formatter f = forNumbers("9");
        check(-10, f, "-#");
        check(NaN, f, " #");

        f = forNumbers(".9");
        check(-1,  f, "-.#");
        check(NaN, f, " .#");

        f = forNumbers("SG");
        check(-1,  f, "-");
        check(NaN, f, "+");

        f = forNumbers("9th");
        check(-10, f, "-#th");
        check(NaN, f, " #  ");

        f = forNumbers("9.9EEEE");
        check(NEGATIVE_INFINITY, f, "-#.#E+##");
        check(NaN,               f, " #.#E+##");

        f = forNumbers("FMRN");
        check(-1,   f, "###############");
        check(0,    f, "###############");
        check(4000, f, "###############");
        check(NaN,  f, "###############");
    }