Metric Functions
Metric Functions
Metric Functions
MET_CmToInch(): Cm to inches.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_CmToInch( nCm ) è nInches
Parameters
nCm centimeters.
Returns
nInches inches.
MET_FeetToInch(): Feet to inches.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_FeetToInch( nFeet ) è nInches
Parameters
nFeet feet.
Returns
nInches inches.
MET_FeetToMeters(): Feet to meters.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_FeetToMeters( nFeet ) è nMeters
Parameters
nFeet feet.
Returns
nMeters meters.
Example
? "Brad Pitt is " + ALLTRIM( STR( MET_FeetToMeters(6) * 100 ) ) + " cm tall"
? "Brad Pitt is " + ALLTRIM( STR( MET_MetersToFeet(1.83),20,2 ) ) + " feet tall"
MET_FeetToMile(): Feet to miles.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_FeetToMile( nFeet ) è nMiles
Parameters
nFeet feet.
Returns
nMiles miles.
MET_FeetToYard(): Feet to yards.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_FeetToYard( nFeet ) è nYards
Parameters
nFeet feet.
Returns
nYards yards.
MET_InchToCm(): Inches to cm.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_InchToCm( nInches ) è nCm
Parameters
nInches inches.
Returns
nCm centimeters.
MET_InchToFeet(): Inches to feet.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_InchToFeet( nInches ) è nFeet
Parameters
nInches inches.
Returns
nFeet feet.
MET_InchToMile(): Inches to miles.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_InchToMile( nInches ) è nMiles
Parameters
nInches inches.
Returns
nMiles miles.
MET_InchToYard(): Inches to yards.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_InchToYard( nInches ) è nYards
Parameters
nInches inches.
Returns
nYards yards.
MET_KmToMile(): Km to mile.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_KmToMile( nKm ) è nMiles
Parameters
nKm kilometers.
Returns
nMiles miles.
MET_LastVersion(): Returns the file stamp of MET functions.
Remark
The precision of the function is not acceptable for scientific computations.
Remark
This function helps the developer identifying the last version of a set of functions. Sometimes the global version information of FOCUS.FLL (MIS_major() and MIS_minor()) does not help tracking down the changes in a project. Starting with version 6.0 of FOCUS.FLL, each source file has now an internal date and time stamp.
Syntax
MET_LastVersion() è szLastVersion
Parameters
None.
Returns
szLastVersion string identifying the last version of the functions set. The string is similar to "C:\Focus\5.0\METRIC.C-Mon Oct 19 15:55:22 1998".
MET_MetersToFeet(): Meters to feet.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MetersToFeet( nMeters ) è nFeet
Parameters
nMeters meters.
Returns
nFeet feet.
Example
? "Brad Pitt is " + ALLTRIM( STR( MET_FeetToMeters(6) * 100 ) ) + " cm tall"
? "Brad Pitt is " + ALLTRIM( STR( MET_MetersToFeet(1.83),20,2 ) ) + " feet tall"
MET_MileToKm(): Miles to km.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MileToKm( nMiles ) è nKm
Parameters
nMiles miles.
Returns
nKm kilometers.
MET_MileToFeet(): Miles to feet.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MileToFeet( nMiles ) è nFeet
Parameters
nMiles miles.
Returns
nFeet feet.
MET_MileToInch(): Miles to inches.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MileToInch( nMiles ) è nInches
Parameters
nMiles miles.
Returns
nInches inches.
MET_MileToYard(): Miles to yards.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MileToYard( nMiles ) è nYards
Parameters
nMiles miles.
Returns
nYards yards.
MET_MToYard(): Meters to yards.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MToYard( nM ) è nYards
Parameters
nM meters.
Returns
nYards yards.
MET_YardToFeet(): Yards to feet.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_YardToFeet( nYards ) è nFeet
Parameters
nYards yards.
Returns
nFeet feet.
MET_YardToInch(): Yards to inches.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_YardToInch( nYards ) è nInches
Parameters
nYards yards.
Returns
nInches inches.
MET_YardToM(): Yards to meters.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_YardToM( nYards ) è nM
Parameters
nYards yards.
Returns
nM meters.
MET_YardToMile(): Yards to mile.
Remark
The precision of the function is not acceptable for scientific computations.
Syntax
MET_MileToYard( nYards ) è nMiles
Parameters
nYards yards.
Returns
nMiles miles.