32 Metric Functions - Deutschsprachige FoxPro User Group



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.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download