def remainder(a,b):
    """Returns the remainder of a divided by b*  
    *Python uses different modulo calculation than C++ - this is the C++ one

    a - (float), b - (float)

    return - (float)
    """
    return a - int(a/b) * b