WordToFloat:

Path: SC/Hardware

% Convert an integer word to a floating point number. 
   Numbers are assumed to be in standard integer format with kMax <= k <= kMax.
--------------------------------------------------------------------------
   Form:
   f = WordToFloat( k, kMax, kMin, resolution )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   k			         (:)   Integer
   kMax          (1,1)  Maximum integer
   kMin          (1,1)  Minimum integer
   resolution    (1,1)  Floating point value of a 1.

   -------
   Outputs
   -------
   f			  (:)    Floating point value

--------------------------------------------------------------------------

Back to the SC Module page