ezyquant_execution.utils.round_even#

ezyquant_execution.utils.round_even(value: float, is_round_up: bool = False) int#

Round float to nearest even.

Parameters:
  • value (float) – value to round

  • is_round_up (bool) – is round up if value is not in 100, else round down.

Returns:

value after rounding

Return type:

int