

            ctor (2) --- character to real conversion                03/23/80


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 real function ctor (str, i)
                 character str (ARB)
                 integer i

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Ctor' is similar in function to 'ctoi', except that it con-
                 verts  floating  point  numbers  as  well  as integers.  The
                 character string in 'str' is examined starting  in  position
                 'i'.   Conversion stops when a character is encountered that
                 cannot correctly appear in the number.  'I'  is  updated  to
                 point  to  the first character not included in the converted
                 number.  The value returned by  the  function  is  the  real
                 (single precision) value of the character string.

                 The  number  in  'str' may contain a leading sign, a decimal
                 point, and an exponent.  A decimal point is not required.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 'Ctod' is called to convert  the  character  string  into  a
                 double  precision  value.  This value is converted to single
                 precision format and returned as the value of 'ctor'.


            _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

                 i


            _C_a_l_l_s

                 ctod


            _S_e_e _A_l_s_o

                 input (2), other conversion routines ('cto?*'  and  '?*toc')
                 (2)













            ctor (2)                      - 1 -                      ctor (2)


