ezyquant_execution.utils.round_x#
- ezyquant_execution.utils.round_x(value: float, x: int, is_round_up: bool = False) int #
Round float to nearest x.
- Parameters:
value (float) – value to round
x (float) – x
is_round_up (bool) – is round up if value is not in 100, else round down.
- Returns:
value after rounding
- Return type:
int