Mercurial > octave-nkf
comparison src/DLD-FUNCTIONS/hex2num.cc @ 9064:7c02ec148a3c
Check grammar on all .cc files
Same check as previously done on .m files
Attempt to enforce some conformity in documentation text for rules
such as two spaces after a period, commas around latin abbreviations, etc.
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sat, 28 Mar 2009 13:57:22 -0700 |
parents | 58604c45ca74 |
children | 34d6f005db4b |
comparison
equal
deleted
inserted
replaced
9063:a6cf0ad87eee | 9064:7c02ec148a3c |
---|---|
41 \n\ | 41 \n\ |
42 Given a string matrix, @code{hex2num} treats each row as a separate\n\ | 42 Given a string matrix, @code{hex2num} treats each row as a separate\n\ |
43 number.\n\ | 43 number.\n\ |
44 \n\ | 44 \n\ |
45 @example\n\ | 45 @example\n\ |
46 @group\n\ | |
46 hex2num ([\"4005bf0a8b145769\";\"4024000000000000\"])\n\ | 47 hex2num ([\"4005bf0a8b145769\";\"4024000000000000\"])\n\ |
47 @result{} [2.7183; 10.000]\n\ | 48 @result{} [2.7183; 10.000]\n\ |
49 @end group\n\ | |
48 @end example\n\ | 50 @end example\n\ |
49 @seealso{num2hex, hex2dec, dec2hex}\n\ | 51 @seealso{num2hex, hex2dec, dec2hex}\n\ |
50 @end deftypefn") | 52 @end deftypefn") |
51 { | 53 { |
52 int nargin = args.length (); | 54 int nargin = args.length (); |
123 @deftypefn {Loadable Function} {@var{s} =} num2hex (@var{n})\n\ | 125 @deftypefn {Loadable Function} {@var{s} =} num2hex (@var{n})\n\ |
124 Typecast a double precision number or vector to a 16 character hexadecimal\n\ | 126 Typecast a double precision number or vector to a 16 character hexadecimal\n\ |
125 string of the IEEE 754 representation of the number. For example\n\ | 127 string of the IEEE 754 representation of the number. For example\n\ |
126 \n\ | 128 \n\ |
127 @example\n\ | 129 @example\n\ |
130 @group\n\ | |
128 num2hex ([-1, 1, e, Inf, NaN, NA]);\n\ | 131 num2hex ([-1, 1, e, Inf, NaN, NA]);\n\ |
129 @result{} \"bff0000000000000\n\ | 132 @result{} \"bff0000000000000\n\ |
130 3ff0000000000000\n\ | 133 3ff0000000000000\n\ |
131 4005bf0a8b145769\n\ | 134 4005bf0a8b145769\n\ |
132 7ff0000000000000\n\ | 135 7ff0000000000000\n\ |
133 fff8000000000000\n\ | 136 fff8000000000000\n\ |
134 7ff00000000007a2\"\n\ | 137 7ff00000000007a2\"\n\ |
138 @end group\n\ | |
135 @end example\n\ | 139 @end example\n\ |
136 @seealso{hex2num, hex2dec, dec2hex}\n\ | 140 @seealso{hex2num, hex2dec, dec2hex}\n\ |
137 @end deftypefn") | 141 @end deftypefn") |
138 { | 142 { |
139 int nargin = args.length (); | 143 int nargin = args.length (); |