-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
228cba0
commit b5db5b6
Showing
1 changed file
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,46 @@ | ||
## About | ||
|
||
<!-- A description of the package and where one can find more documentation --> | ||
|
||
|
||
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. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
## Key Features | ||
|
||
<!-- The key features of this package --> | ||
|
||
* | ||
* | ||
* | ||
* Enables the use of MathF on older .NET platforms | ||
|
||
|
||
## How to Use | ||
|
||
<!-- A compelling example on how to use this package with code, as well as any specific guidelines for when to use the package --> | ||
```C# | ||
using System; | ||
using System.MathF. | ||
This comment has been minimized.
Sorry, something went wrong.
danmoseley
Member
|
||
|
||
internal static class Program | ||
{ | ||
private static async Task Main() | ||
{ | ||
Console.WriteLine("Starting..."); | ||
|
||
Console.WriteLine(MathF.Max(1f, 5f)); // returns 5f | ||
Console.WriteLine("Finished!"); | ||
} | ||
} | ||
``` | ||
|
||
## Main Types | ||
|
||
<!-- The main types provided in this library --> | ||
|
||
The main types provided by this library are: | ||
|
||
* `` | ||
* `` | ||
* `` | ||
* `System.MathF` | ||
|
||
## Additional Documentation | ||
|
||
<!-- Links to further documentation. Remove conceptual documentation if not available for the library. --> | ||
|
||
* [Conceptual documentation](https://learn.microsoft.com/en-us/dotnet/standard/serialization/**LIBRARYNAME**/overview) | ||
* [API documentation](https://learn.microsoft.com/en-us/dotnet/api/**LIBRARYNAME**) | ||
|
||
## Related Packages | ||
|
||
<!-- The related packages associated with this package --> | ||
* [API documentation](https://learn.microsoft.com/en-us/dotnet/api/system.mathf) | ||
|
||
## Feedback & Contributing | ||
|
||
|
This should probably be
.NET has support
rather thanthe C# language has support