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.

GM2SG
gram to slug
GM2LBM
gram to pound
GM2OZM
gram to ounce
GM2KG
gram to kilogram


SG2GM
slug to gram
SG2LBM
slug to pound
SG2OZM
slug to ounce
SG2KG
slug to kilogram


LBM2GM
pound to gram
LBM2SG
pound to slug
LBM2OZM
pound to ounce
LBM2KG
pound to kilogram


OZM2GM
ounce to gram
OZM2SG
ounce to slug
OZM2LBM
ounce to pound
OZM2KG
ounce to kilogram


KG2GM
kilogram to gram
KG2SG
kilogram to slug
KG2LBM
kilogram to pound
KG2OZM
kilogram to ounce
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 LBM2OZM(double dNumber) library "IFL16.DLL"

Visual Basic Function declaration

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

C/C++ Synopsis

#include "function.h"

double LBM2OZM(double dNumber)

32 bit DLL declarations

PowerBuilder Function declaration

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

Visual Basic Function declaration

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

C/C++ Synopsis

#include "function.h"

double LBM2OZM(double dNumber)

Example:

dNumber
=
500

Result: 8,000