sS reformatFloatingPointNumbers(S s, int decimals default 2) { ret regexpReplace(s, "\\b" + regexpForFloatingPointWithoutSign(), matcher -> formatDouble(parseDouble(matcher.group()), decimals)); } sS reformatFloatingPointNumbers(int decimals, S s) { ret reformatFloatingPointNumbers(s, decimals); }