Innovenergy_trunk/csharp/Lib/Units/Percent.cs

13 lines
314 B
C#
Raw Normal View History

namespace InnovEnergy.Lib.Units;
2023-03-01 07:14:08 +00:00
2023-06-13 11:03:49 +00:00
public sealed class Percent : Unit
2023-03-01 07:14:08 +00:00
{
2023-06-13 11:03:49 +00:00
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;
2023-03-01 07:14:08 +00:00
}