[SparForte][Banner]
[Top Main Menu] Intro | Tutorials | Reference | Packages | Examples | Contributors   [Back Page]      [Next Page]  

Units Package

r := units.acres2hectares( f )

 

Converts acres to metric hectares.

Example

h := units.acres2hectares( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of hectares
f in long float required the number of acres

Exceptions

-

See Also

units.hectares2acres

Compare With

-

r := units.bytes2mb( f )

 

Converts bytes to megabytes.

Example

kelvin := units.bytes2mb( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the amount in megabytes
f in long float required the amount in bytes

Exceptions

-

See Also

units.mb2bytes

Compare With

-

r := units.c2f( f )

 

Converts Celcius temperatures to Fahrenheit.

Example

fahren := units.c2f( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the degrees in Fahrenheit
f in long float required the degrees in Celcius

Exceptions

-

See Also

units.f2c

Compare With

-

r := units.c2k( f )

 

Converts Celcius temperatures to Kelvin.

Example

kelvin := units.c2k( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the degrees in Kelvin
f in long float required the degrees in Celcius

Exceptions

-

See Also

units.k2c

Compare With

-

r := units.cm2inches( f )

 

Converts centimeters to feet.

Example

ft := units.cm2inches( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of feet
f in long float required the number of centimeters

Exceptions

-

See Also

units.feet2cm

Compare With

-

r := units.cucm2floz( f )

 

Converts metric cubic centimeters to imperial (British) fluid ounces.

Example

floz := units.cucm2floz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of imperial fluid ounces
f in long float required the number of cubic centimeters

Exceptions

-

See Also

units.floz2cucm

Compare With

-

r := units.cucm2usfloz( f )

 

Converts metric cubic centimeters to U.S. fluid ounces.

Example

floz := units.cucm2usfloz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of U.S. fluid ounces
f in long float required the number of cubic centimeters

Exceptions

-

See Also

units.usfloz2cucm

Compare With

-

r := units.f2c( f )

 

Converts Fahrenheit temperatures to Celsius.

Example

celcius := units.f2c( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the degrees in Celcius
f in long float required the degrees in Fahrenheit

Exceptions

-

See Also

units.c2f

Compare With

-

r := units.feet2cm( f )

 

Converts feet to centimeters.

Example

cm := units.feet2cm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of centimeters
f in long float required the number of feet

Exceptions

-

See Also

units.cm2inches

Compare With

-

r := units.floz2cucm( f )

 

Converts imperial (British) fluid ounces to cubic centimeters.

Example

cm3 := units.floz2cucm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of cubic centimeters
f in long float required the number of imperial fluid ounces

Exceptions

-

See Also

units.cucm2floz

Compare With

-

r := units.floz2usfloz( f )

 

Converts imperial (British) fluid ounces to U.S. fluid ounces.

Example

usfloz := units.floz2usfloz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of U.S. fluid ounces
f in long float required the number of imperial fluid ounces

Exceptions

-

See Also

units.usfloz2floz

Compare With

-

r := units.floz2ml( f )

 

Converts imperial (British) fluid ounces to milliliters.

Example

ml := units.floz2ml( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of milliliters
f in long float required the number of imperial fluid ounces

Exceptions

-

See Also

units.ml2floz

Compare With

-

r := units.g2troz( f )

 

Converts grams to troy ounces.

Example

troz := units.g2troz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of troy ounces
f in long float required the number of grams

Exceptions

-

See Also

units.troz2g

Compare With

-

r := units.gal2l( f )

 

Converts imperial (British) gallons to metric liters.

Example

liters := units.gal2l( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of liters
f in long float required the number of imperial gallons

Exceptions

-

See Also

units.l2gal

Compare With

-

r := units.grams2oz( f )

 

Converts grams to imperial (British) ounces.

Example

oz := units.grams2oz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of imperial ounces
f in long float required the number of grams

Exceptions

-

See Also

units.oz2grams

Compare With

-

r := units.hectares2acres( f )

 

Converts metric hectares to acres.

Example

ac := units.hectares2acres( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of acres
f in long float required the number of hectares

Exceptions

-

See Also

units.acres2hectares

Compare With

-

r := units.inches2mm( f )

 

Converts inches to millimeters.

Example

mm := units.inches2mm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of millimeters
f in long float required the number of inches

Exceptions

-

See Also

units.mm2inches

Compare With

-

r := units.kg2lb( f )

 

Converts kilograms to pounds (weight).

Example

lb := units.kg2lb( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of pounds
f in long float required the number of kilograms

Exceptions

-

See Also

units.lb2kg

Compare With

-

r := units.k2c( f )

 

Converts Kelvin temperatures to Celsius.

Example

celcius := units.k2c( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the degrees in Celcius
f in long float required the degrees in Kelvin

Exceptions

-

See Also

units.c2k

Compare With

-

r := units.km2miles( f )

 

Converts kilometers to miles.

Example

mi := units.km2miles( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of miles
f in long float required the number of kilometers

Exceptions

-

See Also

units.miles2km

Compare With

-

r := units.l2quarts( f )

 

Converts metric liters to imperial (British) quarts.

Example

quarts := units.l2quarts( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of imperial quarts
f in long float required the number of liters

Exceptions

-

See Also

units.pints2l

Compare With

-

r := units.l2usdryoz( f )

 

Converts metric liters to U.S. dry ounces.

Example

oz := units.l2usdryoz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of U.S. dry ounces
f in long float required the number of liters

Exceptions

-

See Also

units.usdryoz2l

Compare With

-

r := units.l2usliqoz( f )

 

Converts metric liters to U.S. liquid ounces.

Example

oz := units.l2usliqoz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of U.S. liquid ounces
f in long float required the number of liters

Exceptions

-

See Also

units.usliqoz2l

Compare With

-

r := units.lb2kg( f )

 

Converts pounds (weight) to kilograms.

Example

kg := units.lb2kg( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of kilograms
f in long float required the number of pounds

Exceptions

-

See Also

units.kg2lb

Compare With

-

r := units.l2gal( f )

 

Converts metric liters to imperial (British) gallons.

Example

gals := units.l2gal( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of imperial gallons
f in long float required the number of liters

Exceptions

-

See Also

units.gal2l

Compare With

-

r := units.ly2pc( f )

 

Converts lightyears to parsecs.

Example

pc := units.ly2pc( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of parsecs
f in long float required the number of lightyears

Exceptions

-

See Also

units.pc2ly

Compare With

-

r := units.m2yards( f )

 

Converts meters to yards.

Example

yd := units.m2yards( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of yards
f in long float required the number of meters

Exceptions

-

See Also

units.yards2m

Compare With

-

r := units.mb2bytes( f )

 

Converts megabytes to bytes.

Example

bytes := units.mb2bytes( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the amount in bytes
f in long float required the amount in megabytes

Exceptions

-

See Also

units.bytes2mb

Compare With

-

r := units.miles2km( f )

 

Converts miles to kilometers.

Example

km := units.miles2km( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of kilometers
f in long float required the number of miles

Exceptions

-

See Also

units.km2miles

Compare With

-

r := units.ml2floz( f )

 

Converts milliliters to imperial (British) fluid ounces.

Example

floz := units.ml2floz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of imperial fluid ounces
f in long float required the number of milliliters

Exceptions

-

See Also

units.floz2ml

Compare With

-

r := units.ml2usfloz( f )

 

Converts milliliters to U.S. fluid ounces.

Example

floz := units.ml2usfloz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of U.S. fluid ounces
f in long float required the number of milliliters

Exceptions

-

See Also

units.usfloz2ml

Compare With

-

r := units.mm2inches( f )

 

Converts millimeters to inches.

Example

in := units.mm2inches( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of inches
f in long float required the number of millimeters

Exceptions

-

See Also

units.inches2mm

Compare With

-

r := units.oz2grams( f )

 

Converts imperial (British) ounces to grams.

Example

g := units.oz2grams( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of grams
f in long float required the number of imperial ounces

Exceptions

-

See Also

units.grams2oz

Compare With

-

r := units.pc2ly( f )

 

Converts parsecs to lightyears.

Example

ly := units.pc2ly( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of lightyears
f in long float required the number of parsecs

Exceptions

-

See Also

units.ly2pc

Compare With

-

r := units.pints2l( f )

 

Converts imperial (British) pints to metric liters.

Example

liters := units.pints2l( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of liters
f in long float required the number of imperial pints

Exceptions

-

See Also

units.l2quarts

Compare With

-

r := units.sqcm2sqin( f )

 

Converts square centimeters to square inches.

Example

in2 := units.sqcm2sqin( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square inches
f in long float required the number of square centimeters

Exceptions

-

See Also

units.sqin2sqcm

Compare With

-

r := units.sqft2sqm( f )

 

Converts square feet to square meters.

Example

m2 := units.sqft2sqm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square meters
f in long float required the number of square feet

Exceptions

-

See Also

units.sqm2sqft

Compare With

-

r := units.sqin2sqcm( f )

 

Converts square inches to square centimeters.

Example

cm2 := units.sqin2sqcm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square centimeters
f in long float required the number of square inches

Exceptions

-

See Also

units.sqcm2sqin

Compare With

-

r := units.sqkm2sqmiles( f )

 

Converts square kilometers to square miles.

Example

mi2 := units.sqkm2sqmiles( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square miles
f in long float required the number of square kilometers

Exceptions

-

See Also

-

Compare With

-

r := units.sqm2sqft( f )

 

Converts square meters to square feet.

Example

ft2 := units.sqm2sqft( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square feet
f in long float required the number of square meters

Exceptions

-

See Also

units.sqft2sqm

Compare With

-

r := units.sqm2sqyd( f )

 

Converts square meters to square yards.

Example

yd2 := units.sqm2sqyd( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square yards
f in long float required the number of square meters

Exceptions

-

See Also

units.sqyd2sqm

Compare With

-

r := units.sqmiles2sqkm( f )

 

Converts square miles to square kilometers.

Example

km2 := units.sqmiles2sqkm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square kilometers
f in long float required the number of square miles

Exceptions

-

See Also

-

Compare With

-

r := units.sqyd2sqm( f )

 

Converts square yards to square meters.

Example

m2 := units.sqyd2sqm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of square meters
f in long float required the number of square yards

Exceptions

-

See Also

units.sqm2sqyd

Compare With

-

r := units.tonnes2tons( f )

 

Converts metric tonnes to tons.

Example

t := units.tonnes2tons( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of tons
f in long float required the number of tonnes

Exceptions

-

See Also

units.tons2tonnes

Compare With

-

r := units.tons2tonnes( f )

 

Converts tons to metric tonnes.

Example

mt := units.ton2tonnes( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of tonnes
f in long float required the number of tons

Exceptions

-

See Also

units.tonnes2tons

Compare With

-

r := units.troz2g( f )

 

Converts troy ounces to grams.

Example

g := units.troz2g( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of grams
f in long float required the number of troy ounces

Exceptions

-

See Also

units.g2troz

Compare With

-

r := units.usdryoz2l( f )

 

Converts U.S. dry ounces to liters.

Example

cm3 := units.usdryoz2l( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of liters
f in long float required the number of U.S. dry ounces

Exceptions

-

See Also

units.l2usdryoz

Compare With

-

r := units.usliqoz2l( f )

 

Converts U.S. liquid ounces to metric liters.

Example

cm3 := units.usliqoz2l( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of liters
f in long float required the number of U.S. liquid ounces

Exceptions

-

See Also

units.l2usliqoz

Compare With

-

r := units.usfloz2cucm( f )

 

Converts U.S. fluid ounces to cubic centimeters.

Example

cm3 := units.usfloz2cucm( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of cubic centimeters
f in long float required the number of U.S. fluid ounces

Exceptions

-

See Also

units.cucm2usfloz

Compare With

-

r := units.usfloz2floz( f )

 

Converts U.S. fluid ounces to imperial (British) fluid ounces.

Example

floz := units.usfloz2floz( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of imperial fluid ounces
f in long float required the number of U.S. fluid ounces

Exceptions

-

See Also

units.floz2usfloz

Compare With

-

r := units.usfloz2ml( f )

 

Converts U.S. fluid ounces to milliliters.

Example

ml := units.usfloz2ml( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of milliliters
f in long float required the number of U.S. fluid ounces

Exceptions

-

See Also

units.ml2usfloz

Compare With

-

r := units.yards2m( f )

 

Converts yards to meters.

Example

m := units.yards2m( 5.5 );

Parameters

Param Mode Type Default Description
r return value long float required the number of meters
f in long float required the number of yards

Exceptions

-

See Also

units.m2yards

Compare With

-

 
[Right Submenu]

 Summary

 arrays

 btree_io

 calendar

 cgi

 chains

 command_line

 db/ postgresql

 dbm

 directory_operations

 doubly_linked...

 dynamic_hash_...

 enums

 exceptions

 files

 gnat.cgi

 gnat.crc32

 hash_io

 lock_files

 memcache

 memcache.highread

 mysql

 mysqlm

 numerics

 os

 pen

 pen (OpenGL)

 records

 sound

 source_info

 stats

 strings

 System

 teams

 templates

 text_io

 units

[Back to Top] Back To Top [Small Forte Symbol]