Innovenergy_trunk/csharp/Lib/Units/Percent.cs

13 lines
314 B
C#

namespace InnovEnergy.Lib.Units;
public sealed class Percent : Unit
{
public override String Symbol => "%";
public Percent(Double value) : base(value)
{
}
public static implicit operator Percent(Double d) => new Percent(d);
public static implicit operator Double(Percent d) => d.Value;
}