25 lines
537 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WeldingCommon.Tools
{
public static class UnitConversion
{
public static double ToPersent(this double Lpm)
{
if (Lpm == 0.0)
return 0.0;
return Lpm / 2.0;
}
public static double ToLPM(this double persent)
{
if (persent == 0.0)
return 0.0;
return persent * 2.0;
}
}
}