【文件属性】:
文件名称:小数转分数算法.cs
文件大小:1KB
文件格式:CS
更新时间:2020-03-10 17:05:56
C# 小数转分数
网上收集的各种算法综合一下,整理出来的这个,给大家参考
分为两个方法
///
/// 小数转分数
///
///
///
public static string GetFraction(double inputnum)
///
/// 求最大公约数
///
///
///
///
public static int MaxCommonDivisor(int num1, int num2)