'Safe floating point division function, does not allow division by 0
returns -1 if the denominator is 0'

def _safe_div(self, v1, v2):

    if (v2 == 0):
        return (-1)
    else:
        return (v1 / v2)
