The Tcl math conversion API library module has the file name conv.tcl. This module performs math conversions. Any conversion that will uses floating-point numbers is coded to make use of the fixed-point math API.
Here is a list of procedures in the this library module:
The following modules are required along with this module:
This module requires the definition file:
Declaration : proc conv_fah_2_cel {s1} Parameters : Name : s1 Type : fxp list Description : input fixed-point number Returns : fxp list of converted number in celsius
This procedure will convert the input fixed-point number in degrees fahrenheit to degrees celsius.
Declaration : proc conv_cel_2_fah {s1} Parameters : Name : s1 Type : fxp list Description : input fixed-point number Returns : fxp list of converted number in fahrenheit
This procedure will convert the input fixed-point number in degrees celsius to degrees fahrenheit.