libb.round_digit_string
- round_digit_string(s, places=None)[source]
Round a numeric string to specified decimal places.
- Parameters:
- Returns:
Rounded numeric string.
- Return type:
Example:
>>> round_digit_string('7283.1234', 3) '7283.123' >>> round_digit_string('7283.1234', None) '7283.1234' >>> round_digit_string('7283', 3) '7283'