accounting/accounting.py
def _change_precision(self, val, base=0):
        """
        Check and normalise the value of precision (must be positive integer).

        Args:
            val (INT): must be positive integer
            base (INT): Description

        Returns:
            VAL (INT): Description
        """
        if not isinstance(val, int):
            raise TypeError('The first argument must be an integer.')
        val = round(abs(val))
        val = (lambda num: base if is_num(num) else num)(val)
        return val

        Check and normalise the value of precision (must be positive integer).

        Args:
            val (INT): must be positive integer
            base (INT): Description

        Returns:
            VAL (INT): Description
        
Check and normalise the value of precision (must be positive integer).
Check and normalise the value of precision ( must be positive integer ) .
def _change_precision(self, val, base=0):
        if not isinstance(val, int):
            raise TypeError('The first argument must be an integer.')
        val = round(abs(val))
        val = (lambda num: base if is_num(num) else num)(val)
        return val
def _change_precision ( self , val , base = 0 ) : if not isinstance ( val , int ) : raise TypeError ( 'The first argument must be an integer.' ) val = round ( abs ( val ) ) val = ( lambda num : base if is_num ( num ) else num ) ( val ) return val
Check and normalise the value of precision (must be positive integer).
Check and normalise the value of precision ( must be positive integer ) .
"""
        Check and normalise the value of precision (must be positive integer).

        Args:
            val (INT): must be positive integer
            base (INT): Description

        Returns:
            VAL (INT): Description
        """
VAL (INT): Description
VAL ( INT ) : Description
self
val
must be positive integer
must be positive integer
base
None