Skip to content

mericbozkurt/Conforyon

 
 

Repository files navigation

Logo

Dot-Net-Framework-Version Dot-Net-Standard-Version Dot-Net-Core-Version Dot-Net-Version C-Sharp-Version IDE-Version NuGet-Version FuGet-Version NuGet

Discord-Server

Welcome to Conforyon

Conforyon is a Unit Converter library. It allows the conversion of various unit conversions it offers.

Contributors

Thanks goes to these wonderful people (emoji key):

Taiizor
Taiizor

💻 🤔

This project follows the all contributors specification. Contributions of any kind welcome!

Backers

Soferity
Soferity

đź–‹

Usage

Step 1:Add a reference to Conforyon or search for Conforyon on the NuGet;

Install-Package Conforyon

Step 2:Enjoy conversions

Demos

Conforyon UI

ConforyonUIDemo

Conforyon UX

ConforyonUXDemo

Detailed Usage

Changing Core Formulas

Get

/* GetValue(MethodType Method = MethodType.DataStorage, string First = "Bit", string Last = "Byte", string Error = ErrorMessage) */
GetValue(MethodType.Time, "Minute", "Second", "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>60</ReturnValue>
</FunctionResult>
/* GetValue(MethodType Method = MethodType.DataStorage, string First = "Bit", string Last = "Byte", string Error = ErrorMessage) */
GetValue(MethodType.Speed, "MPH", "KPH", "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>1,609344</ReturnValue>
</FunctionResult>

Set

/* SetValue(MethodType Method = MethodType.DataStorage, string First = "Bit", string Last = "Byte", string Value = "8", string Error = ErrorMessage) */
SetValue(MethodType.Time, "Minute", "Second", "30", "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>Time->Minute->Second->30</ReturnValue>
</FunctionResult>
/* SetValue(MethodType Method = MethodType.DataStorage, string First = "Bit", string Last = "Byte", string Value = "8", string Error = ErrorMessage) */
SetValue(MethodType.Speed, "MPH", "KPH", "2", "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>Speed->MPH->KPH->2</ReturnValue>
</FunctionResult>

Reset

/* ResetValue() */
ResetValue();
<FunctionResult>
	<ReturnType>System.Boolean</ReturnType>
	<ReturnValue>True</ReturnValue>
</FunctionResult>

List

/* ListValue(string Error = "Error", string Title = "Title") */
ListValue("Error", "Title");
<FunctionResult>
	<ReturnType>System.Collections.Generic.Dictionary</ReturnType>
	<ReturnValue>(Dictionary<MethodType, Dictionary<string, Dictionary<string, string>>>)...</ReturnValue>
</FunctionResult>
/* ListValueJson(string Error = ErrorMessage) */
ListValueJson("Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>(Json)...</ReturnValue>
</FunctionResult>

Clipboard

Text

/* Copy(string Text) */
Copy("Conforyon");
/* Paste(bool Clear = false, string Back = EmptyMessage) */
Paste(true, "Empty!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>Conforyon</ReturnValue>
</FunctionResult>

Audio

/* Copy(string Path) */
Copy(Path);

/* Copy(byte[] Bytes) */
Copy(File.ReadAllBytes(Path));
/* Paste(bool Clear = false) */
Paste(true);
<FunctionResult>
	<ReturnType>System.IO.Stream</ReturnType>
	<ReturnValue>DataFormats.WaveAudio</ReturnValue>
</FunctionResult>

Color

HEX -> RGB

/* RGB(string HEX, ColorType Type = ColorType.RGB1, string Error = ErrorMessage) */
RGB("FFFFFF", ColorType.RGB1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>255, 255, 255</ReturnValue>
</FunctionResult>
/* RGB(string HEX, ColorType Type = ColorType.RGB1, string Error = ErrorMessage) */
RGB("#000000", ColorType.RRGGBB1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>R: 0, G: 0, B: 0</ReturnValue>
</FunctionResult>

RGB -> HEX

/* HEX(int R, int G, int B, bool Sharp = false, string Error = ErrorMessage) */
HEX(255, 255, 255, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>#FFFFFF</ReturnValue>
</FunctionResult>
/* HEX(int R, int G, int B, bool Sharp = false, string Error = ErrorMessage) */
HEX(0, 0, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>000000</ReturnValue>
</FunctionResult>

Crypto

TEXT -> BASE64

/* BASE(string Text, string Error = ErrorMessage) */
BASE("Conforyon", "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>Q29uZm9yeW9u</ReturnValue>
</FunctionResult>

BASE64 -> TEXT

/* TEXT(string Base, string Error = ErrorMessage) */
TEXT("Q29uZm9yeW9u", "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>Conforyon</ReturnValue>
</FunctionResult>

TEXT -> MD5

/* MD5(string Text, bool Uppercase = false, string Error = ErrorMessage) */
MD5("Conforyon", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>9946dc70f0672da2ba000a0cb80f8872</ReturnValue>
</FunctionResult>
/* MD5(string Text, bool Uppercase = false, string Error = ErrorMessage) */
MD5("Conforyon", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>9946DC70F0672DA2BA000A0CB80F8872</ReturnValue>
</FunctionResult>

TEXT -> SHA1

/* SHA1(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA1("Conforyon", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>4a417fe4795f59e4848c403ffc4c569417a743b4</ReturnValue>
</FunctionResult>
/* SHA1(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA1("Conforyon", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>4A417FE4795F59E4848C403FFC4C569417A743B4</ReturnValue>
</FunctionResult>

TEXT -> SHA256

/* SHA256(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA256("Conforyon", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>4a772e794799efdf4dc171ea2779e78bfa582c46ef86c6c018b7e9387d7fe56b</ReturnValue>
</FunctionResult>
/* SHA256(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA256("Conforyon", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>4A772E794799EFDF4DC171EA2779E78BFA582C46EF86C6C018B7E9387D7FE56B</ReturnValue>
</FunctionResult>

TEXT -> SHA384

/* SHA384(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA384("Conforyon", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>3dca281c6056810ca6aff8bb151ea8d0a1908f8650d573237cc038dce3bb30d04a79d2c0f778a5a2e609951a11443db3</ReturnValue>
</FunctionResult>
/* SHA384(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA384("Conforyon", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>3DCA281C6056810CA6AFF8BB151EA8D0A1908F8650D573237CC038DCE3BB30D04A79D2C0F778A5A2E609951A11443DB3</ReturnValue>
</FunctionResult>

TEXT -> SHA512

/* SHA512(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA512("Conforyon", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>d47368182220aab5f687dde734acbb8d895bb2d870e789ee03216f3b215ac00a4202ead0aabce2049ae49a0079b130211323453604c088b09a27ee989de9db8b</ReturnValue>
</FunctionResult>
/* SHA512(string Text, bool Uppercase = false, string Error = ErrorMessage) */
SHA512("Conforyon", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>D47368182220AAB5F687DDE734ACBB8D895BB2D870E789EE03216F3B215AC00A4202EAD0AABCE2049AE49A0079B130211323453604C088B09A27EE989DE9DB8B</ReturnValue>
</FunctionResult>

Hash

FILE -> MD5

/* MD5(string Path, bool Uppercase = false, string Error = ErrorMessage) */
MD5("C:\\Conforyon.dll", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>f9d992a8e8e021c00baa6fe40a35b2fd</ReturnValue>
</FunctionResult>
/* MD5(string Path, bool Uppercase = false, string Error = ErrorMessage) */
MD5("C:\\Conforyon.dll", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>F9D992A8E8E021C00BAA6FE40A35B2FD</ReturnValue>
</FunctionResult>

FILE -> SHA1

/* SHA1(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA1("C:\\Conforyon.dll", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>5622cc83830cf224545f122a3ca129d60d151dcb</ReturnValue>
</FunctionResult>
/* SHA1(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA1("C:\\Conforyon.dll", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>5622CC83830CF224545F122A3CA129D60D151DCB</ReturnValue>
</FunctionResult>

FILE -> SHA256

/* SHA256(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA256("C:\\Conforyon.dll", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>0d71a9f754b5c02cf143a4af153cbe853cda8fc096a253ebe86e6d7970615ece</ReturnValue>
</FunctionResult>
/* SHA256(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA256("C:\\Conforyon.dll", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>0D71A9F754B5C02CF143A4AF153CBE853CDA8FC096A253EBE86E6D7970615ECE</ReturnValue>
</FunctionResult>

FILE -> SHA384

/* SHA384(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA384("C:\\Conforyon.dll", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>154af1bf38dc9b0495704d0a67bf5890f89833165f14d9f4990004bea1f29341a8699e70537a188e0cade1695083c9c6</ReturnValue>
</FunctionResult>
/* SHA384(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA384("C:\\Conforyon.dll", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>154AF1BF38DC9B0495704D0A67BF5890F89833165F14D9F4990004BEA1F29341A8699E70537A188E0CADE1695083C9C6</ReturnValue>
</FunctionResult>

FILE -> SHA512

/* SHA512(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA512("C:\\Conforyon.dll", false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>a9de54d604fba423c81862b0559aa21165d6d69cc751c74f7d2dcc360ba1b750f4e4fee934c24939bb15c70d9a632b203e086a1b9eeeb745e2e7959325c1e968</ReturnValue>
</FunctionResult>
/* SHA512(string Path, bool Uppercase = false, string Error = ErrorMessage) */
SHA512("C:\\Conforyon.dll", true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>A9DE54D604FBA423C81862B0559AA21165D6D69CC751C74F7D2DCC360BA1B750F4E4FEE934C24939BB15C70D9A632B203E086A1B9EEEB745E2E7959325C1E968</ReturnValue>
</FunctionResult>

Data Storage

Auto Data Convert

/* AutoDataConvert(string InputVariable, StorageType InputType, bool TypeText = false, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
AutoDataConvert("987654321", StorageType.Byte, true, true, true, 2, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>941,90 MB</ReturnValue>
</FunctionResult>
/* AutoDataConvert(string InputVariable, StorageType InputType, bool TypeText = false, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
AutoDataConvert("987654321", StorageType.Byte, false, true, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>941</ReturnValue>
</FunctionResult>

Data Convert

/* DataConvert(string InputVariable, StorageType InputType, StorageType TypeConvert, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
DataConvert("987654321", StorageType.Byte, StorageType.GB, true, true, 2, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>0,91</ReturnValue>
</FunctionResult>
/* DataConvert(string InputVariable, StorageType InputType, StorageType TypeConvert, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
DataConvert("987654321", StorageType.Byte, StorageType.GB, false, true, 5, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>0,91982</ReturnValue>
</FunctionResult>

Temperature

Kelvin -> Celsius

/* Celsius(string Kelvin, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Celsius("12345", true, true, 1, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>12.071,8 C</ReturnValue>
</FunctionResult>
/* Celsius(string Kelvin, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Celsius("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>12071</ReturnValue>
</FunctionResult>

Kelvin -> Fahrenheit

/* Fahrenheit(string Kelvin, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Fahrenheit("12345", true, true, 1, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>21.761,3 F</ReturnValue>
</FunctionResult>
/* Fahrenheit(string Kelvin, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Fahrenheit("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>21761</ReturnValue>
</FunctionResult>

Celsius -> Kelvin

/* Kelvin(string Celsius, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Kelvin("12345", true, true, 1, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>12.618,1 K</ReturnValue>
</FunctionResult>
/* Kelvin(string Celsius, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Kelvin("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>12618</ReturnValue>
</FunctionResult>

Celsius -> Fahrenheit

/* Fahrenheit(string Celsius, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Fahrenheit("12345", true, true, 1, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>22.253,0 F</ReturnValue>
</FunctionResult>
/* Fahrenheit(string Celsius, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Fahrenheit("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>22253</ReturnValue>
</FunctionResult>

Fahrenheit -> Kelvin

/* Kelvin(string Fahrenheit, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Kelvin("12345", true, true, 2, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>7.113,70 K</ReturnValue>
</FunctionResult>
/* Kelvin(string Fahrenheit, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Kelvin("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>7113</ReturnValue>
</FunctionResult>

Fahrenheit -> Celsius

/* Celsius(string Fahrenheit, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Celsius("12345", true, true, 2, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>6.840,55 C</ReturnValue>
</FunctionResult>
/* Celsius(string Fahrenheit, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
Celsius("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>6840</ReturnValue>
</FunctionResult>

Typography

INCH -> CM

/* CM(string Inch, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
CM("12345", true, true, 1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>31.356,3</ReturnValue>
</FunctionResult>
/* CM(string Inch, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
CM("12345", false, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>31356</ReturnValue>
</FunctionResult>

INCH -> PX

/* PX(string Inch, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
PX("12345", true, true, 1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>1.185.120,0</ReturnValue>
</FunctionResult>
/* PX(string Inch, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
PX("12345", false, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>1185120</ReturnValue>
</FunctionResult>

CM -> INCH

/* INCH(string Centimeter, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
INCH("12345", true, true, 1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>4.860,2</ReturnValue>
</FunctionResult>
/* INCH(string Centimeter, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
INCH("12345", false, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>4860</ReturnValue>
</FunctionResult>

CM -> PX

/* PX(string Centimeter, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
PX("12345", true, true, 1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>466.582,6</ReturnValue>
</FunctionResult>
/* PX(string Centimeter, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
PX("12345", false, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>466582</ReturnValue>
</FunctionResult>

PX -> CM

/* CM(string Pixel, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
CM("12345", true, true, 1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>326,6</ReturnValue>
</FunctionResult>
/* CM(string Pixel, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
CM("12345", false, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>326</ReturnValue>
</FunctionResult>

PX -> INCH

/* INCH(string Pixel, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
INCH("12345", true, true, 1, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>128,5</ReturnValue>
</FunctionResult>
/* INCH(string Pixel, bool Decimal, bool Comma, int PostComma = 0, string Error = ErrorMessage) */
INCH("12345", false, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>128</ReturnValue>
</FunctionResult>

Unicode

CHAR -> ASCII

/* ASCII(string CHAR, char Bracket = ',', string Error = ErrorMessage) */
ASCII("Conforyon", ',', "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>67,111,110,102,111,114,121,111,110</ReturnValue>
</FunctionResult>

ASCII -> CHAR

/* CHAR(string ASCII, char Bracket = ',', string Error = ErrorMessage) */
CHAR("67,111,110,102,111,114,121,111,110", ',', "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>Conforyon</ReturnValue>
</FunctionResult>

Speed

Miles Per Hour -> Kilometers Per Hour

/* KPH(string Miles, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
KPH("12345", true, true, 1, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>19.867,3 KPH</ReturnValue>
</FunctionResult>
/* KPH(string Miles, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
KPH("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>19867</ReturnValue>
</FunctionResult>

Kilometers Per Hour -> Miles Per Hour

/* MPH(string Kilometers, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
MPH("12345", true, true, 1, true, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>7.670,8 MPH</ReturnValue>
</FunctionResult>
/* MPH(string Kilometers, bool Decimal, bool Comma, int PostComma = 0, bool Text = true, string Error = ErrorMessage) */
MPH("12345", false, false, 0, false, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>7670</ReturnValue>
</FunctionResult>

Time

Auto Time Convert

/* AutoTimeConvert(string InputVariable, TimeType InputType, bool TypeText = false, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
AutoTimeConvert("12345", TimeType.Second, true, true, true, 2, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>3,42 Hour</ReturnValue>
</FunctionResult>
/* AutoTimeConvert(string InputVariable, TimeType InputType, bool TypeText = false, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
AutoTimeConvert("12345", TimeType.Second, false, true, false, 0, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>3</ReturnValue>
</FunctionResult>

Time Convert

/* TimeConvert(string InputVariable, TimeType InputType, TimeType TypeConvert, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
TimeConvert("12345", TimeType.Second, TimeType.Minute, true, true, 2, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>205,75</ReturnValue>
</FunctionResult>
/* TimeConvert(string InputVariable, TimeType InputType, TimeType TypeConvert, bool Decimal = false, bool Comma = false, int PostComma = 0, string Error = ErrorMessage) */
TimeConvert("12345", TimeType.Second, TimeType.Minute, false, true, 5, "Error!");
<FunctionResult>
	<ReturnType>System.String</ReturnType>
	<ReturnValue>205,75000</ReturnValue>
</FunctionResult>

About

.NET Insanely Fast Unit Converter

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%