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