<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _q(self, number, precision='.00001'):
 """quantiztion of BSSEval values"""

        if np.isinf(number):
            return np.nan
        else:
            return D(D(number).quantize(D(precision)))