optimization of printf/string.format

some optimization of string.format and printf
additionally a working skeleton of std.math again ( I away the result in functions to finish the rest )