Functions File Reference

#include <algorithm>
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "utils.h"
Include dependency graph for

Go to the source code of this file.


 DEFUN_DLD (hex2num, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{n} =} hex2num (@var{s})\n\ Typecast the 16 character hexadecimal character string to an IEEE 754\n\ double precision number. If fewer than 16 characters are given the\n\ strings are right padded with '0' characters.\n\ \n\ Given a string matrix, @code{hex2num} treats each row as a separate\n\ number.\n\ \n\ @example\n\ @group\n\ hex2num ([\"4005bf0a8b145769\";\"4024000000000000\"])\n\ @result{} [2.7183; 10.000]\n\ @end group\n\ @end example\n\ @seealso{num2hex, hex2dec, dec2hex}\n\ @end deftypefn")
 DEFUN_DLD (num2hex, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{s} =} num2hex (@var{n})\n\ Typecast a double precision number or vector to a 16 character hexadecimal\n\ string of the IEEE 754 representation of the number. For example:\n\ \n\ @example\n\ @group\n\ num2hex ([-1, 1, e, Inf, NaN, NA]);\n\ @result{} \"bff0000000000000\n\ 3ff0000000000000\n\ 4005bf0a8b145769\n\ 7ff0000000000000\n\ fff8000000000000\n\ 7ff00000000007a2\"\n\ @end group\n\ @end example\n\ @seealso{hex2num, hex2dec, dec2hex}\n\ @end deftypefn")

Function Documentation

DEFUN_DLD ( hex2num  ,
DEFUN_DLD ( num2hex  ,
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines