AngleSharp by Florian Rappl

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

.NET API 1,168,384 bytes

 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 the equality of the two given percentages.

public static float op_Explicit(Percent number)

Converts the percent value to its probability representation.

public static int op_Explicit(Percent number)

Converts the percent value to its common representation.

public static bool op_Inequality(Percent a, Percent b)

Checks the inequality of the two given percentages.

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 float ToPixel()

Converts the length to a number of pixels, if possible. If the current unit is relative, then an exception will be thrown.

public string ToString(string format, IFormatProvider formatProvider)

Returns a formatted string representing the percentage.