| www.delorie.com/gnu/docs/octave/octave_56.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
bin2dec ("1110")
=> 14
|
dec2bin (14)
=> "1110"
|
dec2hex (2748)
=> "abc"
|
hex2dec ("12B")
=> 299
hex2dec ("12b")
=> 299
|
toascii ("ASCII")
=> [ 65, 83, 67, 73, 73 ]
|
tolower ("MiXeD cAsE 123")
=> "mixed case 123"
|
toupper ("MiXeD cAsE 123")
=> "MIXED CASE 123"
|
bell = "\a"; |
assigns the value of the alert character (control-g, ASCII code 7) to
the string variable bell. If this string is printed, the
system will ring the terminal bell (if it is possible). This is
normally the desired outcome. However, sometimes it is useful to be
able to print the original representation of the string, with the
special characters replaced by their escape sequences. For example,
octave:13> undo_string_escapes (bell) ans = \a |
replaces the unprintable alert character with its printable representation.
implicit_num_to_str_ok is nonzero, implicit
conversions of numbers to their ASCII character equivalents are
allowed when strings are constructed using a mixture of strings and
numbers in matrix notation. Otherwise, an error message is printed and
control is returned to the top level. The default value is 0. For
example,
[ "f", 111, 111 ]
=> "foo"
|
implicit_str_to_num_ok is nonzero, implicit
conversions of strings to their numeric ASCII equivalents are allowed.
Otherwise, an error message is printed and control is returned to the
top level. The default value is 0.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |