roundOff()

Signature:

round_off(
    precision: int,
    tens_place: int,
    in_place: bool = False
) -> TimeSeries

Detailed Documentation

The hec-python-library equivalent of Jython method roundOff():

If in_place=True, the instance itself is modified. In this case the returned value (which can be ignored in python) is the modified instance, which can be used in chaining methods.

Example:

ts2 = ts1.round_off(5, -1)

Signature:

iround_off(
    precision: int,
    tens_place: int,
) -> TimeSeries

Convenience method for calling round_off(...) with in_place=True

Example:

ts1.iround_off(5, -1)