FloatToWord:

Path: SC/Hardware

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

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

   -------
   Outputs
   -------
   k			  (:)    Integer

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

Back to the SC Module page