Czlovek.Convertors
2.1.0-beta.74
See the version list below for details.
dotnet add package Czlovek.Convertors --version 2.1.0-beta.74
NuGet\Install-Package Czlovek.Convertors -Version 2.1.0-beta.74
<PackageReference Include="Czlovek.Convertors" Version="2.1.0-beta.74" />
<PackageVersion Include="Czlovek.Convertors" Version="2.1.0-beta.74" />
<PackageReference Include="Czlovek.Convertors" />
paket add Czlovek.Convertors --version 2.1.0-beta.74
#r "nuget: Czlovek.Convertors, 2.1.0-beta.74"
#:package Czlovek.Convertors@2.1.0-beta.74
#addin nuget:?package=Czlovek.Convertors&version=2.1.0-beta.74&prerelease
#tool nuget:?package=Czlovek.Convertors&version=2.1.0-beta.74&prerelease
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 | Versions 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. |
-
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 | 95 | 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 |