Single type

single


Converts a variable to single precision type.


Syntax


S = single(V)

Input argument


V

a variable.

Output argument


S

a single.

Description


single(V) converts to the single-precision type.

Examples


single('Nelson')

A = single(pi)

See also


char, double, numeric types.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

Single type