pyanno4rt.tools._custom_round

Custom number rounding.

Overview

Function

custom_round(number)

Round up a number from 5 as the first decimal place, otherwise round down.

Functions

pyanno4rt.tools._custom_round.custom_round(number)[source]

Round up a number from 5 as the first decimal place, otherwise round down.

Parameters:

number (int or float) – The number to be rounded.

Returns:

The rounded number.

Return type:

float