Function Reference

Numeric Data Types

General

double
Convert X to double precision type.
complex
Convert X to a complex value.

Matrices

output_max_field_width
Query or set the internal variable that specifies the maximum width of a numeric output field.
output_precision
Query or set the internal variable that specifies the minimum number of significant figures to display for numeric output.
split_long_rows
Query or set the internal variable that controls whether rows of a matrix may be split when displayed to a terminal window.
fixed_point_format
Query or set the internal variable that controls whether Octave will use a scaled format to print matrix values such that the largest element may be written with a single leading digit with the scalin
print_empty_dimensions
Query or set the internal variable that controls whether the dimensions of empty matrices are printed along with the empty matrix symbol, `[]'.

Single Precision Data Types

single
Convert X to single precision type.

Integer Data Types

isinteger
Return true if X is an integer object (int8, uint8, int16, etc.
int8
Convert X to 8-bit integer type.
uint8
Convert X to unsigned 8-bit integer type.
int16
Convert X to 16-bit integer type.
uint16
Convert X to unsigned 16-bit integer type.
int32
Convert X to 32-bit integer type.
uint32
Convert X to unsigned 32-bit integer type.
int64
Convert X to 64-bit integer type.
uint64
Convert X to unsigned 64-bit integer type.
intmax
Return the largest integer that can be represented in an integer type.
intmin
Return the smallest integer that can be represented in an integer type.
intwarning
Control the state of the warning for integer conversions and math operations.
idivide
Integer division with different round rules.

Bit Manipulations

bitset
Set or reset bit(s) N of unsigned integers in A.
bitget
Return the status of bit(s) N of unsigned integers in A the lowest significant bit is N = 1.
bitmax
Return the largest integer that can be represented as a floating point value.
bitand
Return the bitwise AND of nonnegative integers.
bitor
Return the bitwise OR of nonnegative integers.
bitxor
Return the bitwise XOR of nonnegative integers.
bitcmp
Return the K-bit complement of integers in A.
bitshift
Return a K bit shift of N- digit unsigned integers in A.

Logical Values

logical
Convert ARG to a logical value.
true
Return a matrix or N-dimensional array whose elements are all logical 1.
false
Return a matrix or N-dimensional array whose elements are all logical 0.

Predicates for Numeric Objects

isnumeric
Return nonzero if X is a numeric object.
isreal
Return true if X is a real-valued numeric object.
isfloat
Return true if X is a floating-point numeric object.
iscomplex
Return true if X is a complex-valued numeric object.
ismatrix
Return 1 if A is a matrix.
isvector
Return 1 if A is a vector.
isscalar
Return 1 if A is a scalar.
issquare
If X is a square matrix, then return the dimension of X.
issymmetric
If X is symmetric within the tolerance specified by TOL, then return the dimension of X.
isdefinite
Return 1 if X is symmetric positive definite within the tolerance specified by TOL or 0 if X is symmetric positive semidefinite.
islogical
Return true if X is a logical object.
isprime
Return true if N is a prime number, false otherwise.