/
Double.Min.cs
21 lines (20 loc) · 1.01 KB
/
Double.Min.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Description: C# Extension Methods | Enhance the .NET Framework and .NET Core with over 1000 extension methods.
// Website & Documentation: https://csharp-extension.com/
// Issues: https://github.com/zzzprojects/Z.ExtensionMethods/issues
// License (MIT): https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/LICENSE
// More projects: https://zzzprojects.com/
// Copyright © ZZZ Projects Inc. All rights reserved.
using System;
public static partial class Extensions
{
/// <summary>
/// Returns the smaller of two double-precision floating-point numbers.
/// </summary>
/// <param name="val1">The first of two double-precision floating-point numbers to compare.</param>
/// <param name="val2">The second of two double-precision floating-point numbers to compare.</param>
/// <returns>Parameter or , whichever is smaller. If , , or both and are equal to , is returned.</returns>
public static Double Min(this Double val1, Double val2)
{
return Math.Min(val1, val2);
}
}