core/unit.c File Reference


Detailed Description

Id
unit.c,v 1.17 2008/01/29 23:36:35 d3p988 Exp

Definition in file unit.c.

Go to the source code of this file.

Functions

int unit_constant (char name, double value)
int unit_convert (char *from, char *to, double *pValue)
 Convert a value from one unit to another.
int unit_convert_ex (UNIT *pFrom, UNIT *pTo, double *pValue)
 Convert a value from one unit to another.
int unit_derived (char *name, char *derivation)
UNITunit_find (char *unit)
 Find a unit.
UNITunit_find_underived (char *unit)
void unit_init (void)
 Initialize the unit manager.
int unit_precision (char *term)
int unit_primary (char *name, double c, double e, double h, double k, double m, double s, double a, double b, int prec)
int unit_test (void)
 Test the unit manager.


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy