contents.gifprev1.gifnext1.gif

X2Y() - X to Y

These functions convert X to Y. In the function declaration we used X2Y. This need to be replaced by one the following function names.

TSP2TBS
teaspoon to tablespoon
TSP2OZ
teaspoon to ounce
TSP2CUP
teaspoon to cup
TSP2PT
teaspoon to pint
TSP2QT
teaspoon to quart
TSP2GAL
teaspoon to gallon
TSP2L
teaspoon to liter


TBS2TSP
tablespoon to teaspoon
TBS2OZ
tablespoon to ounce
TBS2CUP
tablespoon to cup
TBS2PT
tablespoon to pint
TBS2QT
tablespoon to quart
TBS2GAL
tablespoon to gallon
TBS2L
tablespoon to liter


OZ2TSP
ounce to teaspoon
OZ2TBS
ounce to tablespoon
OZ2CUP
ounce to cup
OZ2PT
ounce to pint
OZ2QT
ounce to quart
OZ2GAL
ounce to gallon
OZ2L
ounce to liter


CUP2TSP
cup to teaspoon
CUP2TBS
cup to tablespoon
CUP2OZ
cup to ounce
CUP2PT
cup to pint
CUP2QT
cup to quart
CUP2GAL
cup to gallon
CUP2L
cup to liter


PT2TSP
pint to teaspoon
PT2TBS
pint to tablespoon
PT2OZ
pint to ounce
PT2CUP
pint to cup
PT2QT
pint to quart
PT2GAL
pint to gallon
PT2L
pint to liter


QT2TSP
quart to teaspoon
QT2TBS
quart to tablespoon
QT2OZ
quart to ounce
QT2CUP
quart to cup
QT2PT
quart to pint
QT2GAL
quart to gallon
QT2L
quart to liter


GAL2TSP
gallon to teaspoon
GAL2TBS
gallon to tablespoon
GAL2OZ
gallon to ounce
GAL2CUP
gallon to cup
GAL2PT
gallon to pint
GAL2QT
gallon to quart
GAL2L
gallon to liter


L2TSP
liter to teaspoon
L2TBS
liter to tablespoon
L2OZ
liter to ounce
L2CUP
liter to cup
L2PT
liter to pint
L2QT
liter to quart
L2GAL
liter to gallon
Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dNumber
Quantity
16 bit DLL declarations

PowerBuilder Function declaration

function double TSP2CUP(double dNumber) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function TSP2CUP lib "IFL16" (ByVal dNumber As Double) As Double

C/C++ Synopsis

#include "function.h"

double TSP2CUP(double dNumber)

32 bit DLL declarations

PowerBuilder Function declaration

function double TSP2CUP(double dNumber) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function TSP2CUP lib "IFL32" (ByVal dNumber As Double) As Double

C/C++ Synopsis

#include "function.h"

double TSP2CUP(double dNumber)

Example:

dNumber
=
500

Result: 10.41667