AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.8" />

 Percent

Represents a percentage value.
public static readonly Percent Fifty

Gets a fifty percent value.

public static readonly Percent Hundred

Gets a hundred percent value.

public static readonly Percent Zero

Gets a zero percent value.

public float NormalizedValue { get; }

Gets the normalized value (0 to 1).

public float Value { get; }

Gets the usual value (0 to 100).

public Percent(float value)

Creates a new percentage value.

public static bool op_Equality(Percent a, Percent b)

Checks for equality of two percents.

public static bool op_GreaterThan(Percent a, Percent b)

Compares the magnitude of two percents.

public static bool op_GreaterThanOrEqual(Percent a, Percent b)

Compares the magnitude of two percents.

public static bool op_Inequality(Percent a, Percent b)

Checks for inequality of two percents.

public static bool op_LessThan(Percent a, Percent b)

Compares the magnitude of two percents.

public static bool op_LessThanOrEqual(Percent a, Percent b)

Compares the magnitude of two percents.

public int CompareTo(Percent other)

Compares the current percentage against the given one.

public bool Equals(Percent other)

Checks if the given percent value is equal to the current one.

public string ToString(string format, IFormatProvider formatProvider)

Returns a formatted string representing the percentage.