Skip to content

Commit

Permalink
Corrected docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 13, 2023
1 parent 4f7b858 commit 187dbc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Magick.NET.Core/Types/Percentage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,18 @@ public override int GetHashCode()
=> _value.GetHashCode();

/// <summary>
/// Multiplies the value by the percentage.
/// Multiplies the value by the specified percentage.
/// </summary>
/// <param name="value">The value to use.</param>
/// <returns>the new value.</returns>
/// <returns>The new value.</returns>
public double Multiply(double value)
=> (value * _value) / 100.0;

/// <summary>
/// Multiplies the value by the percentage.
/// Multiplies the value by the specified percentage.
/// </summary>
/// <param name="value">The value to use.</param>
/// <returns>the new value.</returns>
/// <returns>The new value.</returns>
public int Multiply(int value)
=> (int)((value * _value) / 100.0);

Expand Down

0 comments on commit 187dbc0

Please sign in to comment.