Czlovek.Convertors 2.1.0-beta.79

This is a prerelease version of Czlovek.Convertors.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Czlovek.Convertors --version 2.1.0-beta.79
                    
NuGet\Install-Package Czlovek.Convertors -Version 2.1.0-beta.79
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Czlovek.Convertors" Version="2.1.0-beta.79" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Czlovek.Convertors" Version="2.1.0-beta.79" />
                    
Directory.Packages.props
<PackageReference Include="Czlovek.Convertors" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Czlovek.Convertors --version 2.1.0-beta.79
                    
#r "nuget: Czlovek.Convertors, 2.1.0-beta.79"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Czlovek.Convertors@2.1.0-beta.79
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Czlovek.Convertors&version=2.1.0-beta.79&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Czlovek.Convertors&version=2.1.0-beta.79&prerelease
                    
Install as a Cake Tool

Description

This code contains a collection of extension methods for converting values between different units of measure. It includes methods for converting values from degrees to radians, from meters to feet and miles, and from feet to meters. The code is written as a static class named Extensions.

Usage

To use these methods, you need to include the Extensions class in your project and call the appropriate method on a value of the appropriate type. Each method is designed to work with any type that implements the INumber interface, which is a custom interface that defines the basic mathematical operations.

For example, to convert a value from degrees to radians, you can use the ToRadians method like this:

double degrees = 90; double radians = degrees.ToRadians();

Similarly, to convert a value from meters to feet, you can use the MetersToFeets method:

double meters = 10; double feet = meters.MetersToFeets();

And to convert a value from feet to meters, you can use the FeetsToMeters method:

double feet = 30; double meters = feet.FeetsToMeters();

Note that each method returns a value of the same type as the input value, converted to the appropriate unit of measure. The conversion is done using a simple multiplication by a conversion factor, and any truncation or rounding of the result is done using the CreateTruncating method, which is part of the INumber interface.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Czlovek.Convertors:

Package Downloads
Czlovek.Spatials

Utility for geospatial calculations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0-beta.84 58 5/7/2026
2.1.0-beta.83 53 5/7/2026
2.1.0-beta.82 94 3/20/2026
2.1.0-beta.81 70 2/21/2026
2.1.0-beta.80 72 2/21/2026
2.1.0-beta.79 81 2/13/2026
2.1.0-beta.78 82 2/11/2026
2.1.0-beta.77 75 2/11/2026
2.1.0-beta.76 76 2/10/2026
2.1.0-beta.75 98 2/10/2026
2.1.0-beta.74 85 1/28/2026
2.1.0-beta.73 205 11/6/2025
2.1.0-beta.72 186 11/6/2025
2.1.0-beta.71 193 11/4/2025
2.1.0-beta.70 184 11/4/2025
2.1.0-beta.69 184 11/4/2025
2.1.0-beta.68 180 11/4/2025
2.1.0-beta.67 189 11/2/2025
2.1.0-beta.66 182 11/2/2025
1.0.10 409 4/11/2023
Loading failed