def _group(self, value: str):
reversed_v = value[::-<NUM_LIT:1>]<EOL>parts = []<EOL>has_period = False<EOL>for c in reversed_v:<EOL><INDENT>if has_period:<EOL><INDENT>parts.append(c + '<STR_LIT:.>')<EOL>has_period = False<EOL><DEDENT>elif c == '<STR_LIT:.>':<EOL><INDENT>has_period = True<EOL><DEDENT>else:<EOL><INDENT>parts.append(c)<EOL><DEDENT><DEDENT>parts = parts[:len(self._digits)]<EOL>return parts<EOL>
Takes a string and groups it appropriately with any
period or other appropriate punctuation so that it is
displayed correctly.
:param value: a string containing an integer or float
:return: None