writef("###\n", 1.1);
writef("###.\n", 1.1);
writef("###..\n", 1.1);
writef("###.##\n", 1.1);
writef("%{###}.##\n", 1.1, 2.2);
writef("%{###.}##\n", 1.1, 2.2);
writef("%{###}%{###}\n", 1.1, 2.2);
writef("%{#.#}#.#%{#.#}\n", 1.1, 2.2, 3.3);
writef("%{#}#%{#}\n", 1.1, 2.2, 3.3);


Add test from commit message
writef("###\n", 1.1);
writef("###.\n", 1.1);
writef("###..\n", 1.1);
writef("###.##\n", 1.1);
writef("%{###}.##\n", 1.1, 2.2);
writef("%{###.}##\n", 1.1, 2.2);
writef("%{###}%{###}\n", 1.1, 2.2);
writef("%{#.#}#.#%{#.#}\n", 1.1, 2.2, 3.3);
writef("%{#}#%{#}\n", 1.1, 2.2, 3.3);
writef("%{#.#}.%{#.#}\n", 1.2, 3.4);