Provides the System.MathF for .NET Standard 2.0
Install
| Product | Versions |
|---|---|
| .NET Standard | |
| Other |
README
About
As of .NET Core 2.0 and .NET Standard 2.1, the C# language has support for math (System.MathF) functions with floats. This library provides the necessary definitions of those types to support these language features on .NET Framework and on .NET Standard 2.0. This library is not necessary nor recommended when targeting versions of .NET that include the relevant support.
Key Features
- Enables the use of MathF on older .NET platforms
How to Use
using System;
internal static class Program
{
private static async Task Main()
{
Console.WriteLine(MathF.Max(1f, 5f)); // returns 5f
}
}
Main Types
The main types provided by this library are:
System.MathF
Additional Documentation
Feedback & Contributing
Microsoft.Bcl.Numerics is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.