예제 #1
0
    public static float DivideInRangeFromZeroToOne(this BigInt v, BigInt o, int digits = 2)
    {
        if (v.IsZeroOrNegative())
        {
            return(0);
        }
        var   powDigits = (int)Mathf.Pow(10, digits);
        float result    = (float)((v * powDigits) / o);

        return(result / powDigits);
    }