2140 of 161
Previous
Next 
Convert from cubic feet to cubic meters, and vice versa
by Marco Bellinaso
Convert from cubic feet to cubic meters, and vice versa

Convert from cubic inches to cubic decimeters, and vice versa
by Marco Bellinaso
Convert from cubic inches to cubic decimeters, and vice versa

Convert from cubic yards to cubic meters, and vice versa
by Marco Bellinaso
Convert from cubic yards to cubic meters, and vice versa

Convert from feet to meters, and vice versa
by Marco Bellinaso
Convert from feet to meters, and vice versa

Convert from grains to grams, and vice versa
by Marco Bellinaso
Convert from grains to grams, and vice versa

Convert from imperial gallons to liters, and vice versa
by Marco Bellinaso
Convert from imperial gallons to liters, and vice versa

Convert from inches to centimeters, and vice versa
by Marco Bellinaso
Convert from inches to centimeters, and vice versa

Convert from ounces to grams, and vice versa
by Marco Bellinaso
Convert from ounces to grams, and vice versa

Convert from pints to cubic decimeters, and vice versa
by Marco Bellinaso
Convert from pints to cubic decimeters, and vice versa

Convert from square feet to square meters, and vice versa
by Marco Bellinaso
Convert from square feet to square meters, and vice versa

Convert from square inches to square centimeters, and vice versa
by Marco Bellinaso
Convert from square inches to square centimeters, and vice versa

Convert from square yards to square meters, and vice versa
by Marco Bellinaso
Convert from square yards to square meters, and vice versa

Convert from US gallons to liters, and vice versa
by Marco Bellinaso
Convert from US gallons to liters, and vice versa

MK? And CV?  Convert numbers to strings and back
by Adam Phillips
The following routines convert a numeric value into a string that represents the number, and vice versa. They are useful for reading data written by QuickBasic programs, because the QuickBasic language functions that did the conversions were not ported to Visual Basic.
Points to note: 1.

EvaluateModule  a module for evaluating expressions
by Francesco Balena
A module for evaluating expressions, with support for
parenthesis and many math functions
Example:
Dim expr As String = "(SQR(9)^3)+COS(0)*3+ABS(10)"
txtResult.Text = Evaluate(expr).ToString ' ==> 27+3+10 ==> 40

Hex  Convert from decimal to hexadecimal
by Francesco Balena
convert from decimal to hexadecimal
if you pass the Digits argument, the result is truncated to that number of digits
you should always specify Digits if passing negative values

Hex2Dec  Convert from hexadecimal to decimal
by Francesco Balena
convert from hexadecimal to decimal

Any2Dec  Convert from any numeric base to decimal
by Francesco Balena
convert from any base to decimal
BASE can be in the range 236

Convert a binary, octal, or hexadecimal value to decimal
by Francesco Balena
The Convert class offers a few static methods that let you easily and quickly convert a binary, octal, or hexadecimal number(stored in a String) into the equivalent Byte, Short, Integer, or Long value. These are the methods in question:
Dim b As Byte = Convert.ToByte(value, fromBase)

Convert a decimal value to binary, octal, or hexadecimal
by Francesco Balena
The ToString method of the Convert class lets you easily and quickly convert a decimal value into a string representation of that number to binary, octal, or hexadecimal base:
' convert to binary
Console.WriteLine(Convert.ToString(11, 2)) ' => 1011
' convert to octal
Console.

2140 of 161
Previous
Next 