コード例 #1
0
 public static string ToFraction(this double number, FractionalizeOptions options = null)
 {
     return(Fractionalize.ToFraction(number, options));
 }
コード例 #2
0
 public static string ToFraction(this decimal number, FractionalizeOptions options = null)
 {
     return(Fractionalize.ToFraction(Convert.ToDouble(number), options));
 }