Skip to content

Commit

Permalink
Merge pull request #13 from Yesser-Studios/double-max-min-fix
Browse files Browse the repository at this point in the history
Fixed doubles using integers for max
  • Loading branch information
yesseruser authored Dec 9, 2023
2 parents 3554b3f + 263c0f5 commit 10ba09d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yTools/Doubles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static double Max(params double[] nums)
double max = nums[0];
for (int i = 0; i < Integers.Count(nums); i++)
{
foreach (int item in nums)
foreach (double item in nums)
{
if (max < item)
{
Expand All @@ -83,7 +83,7 @@ public static double Min(params double[] nums)
double min = nums[0];
for (int i = 0; i < Integers.Count(nums); i++)
{
foreach (int item in nums)
foreach (double item in nums)
{
if (min > item)
{
Expand Down

0 comments on commit 10ba09d

Please sign in to comment.