public Fixed <T> Multiply(Fixed <T> t2) { return(new Fixed <T>(fixedPointValue: (int)(_representation * (Int64)t2._representation) / Q32Format <T> .GetScalingFactor())); }
public Fixed(int numberToStore) { _representation = numberToStore * Q32Format <T> .GetScalingFactor(); }
public double ToDouble() { return(_representation / (double)(Q32Format <T> .GetScalingFactor())); }
public Fixed <T> Divide(Fixed <T> t2) { return(new Fixed <T>(fixedPointValue: (int)(_representation * (Int64)Q32Format <T> .GetScalingFactor() / t2._representation))); }