Mathematics Previous page   Next Page

Single-Precision Arithmetic

You can combine two numbers of type single and the result is of type single. For example,

You can verify that the result has data type single with the class command.

You can combine scalars or arrays of type single with scalars or arrays of type double, and the result has type single. For example,

However, you cannot combine scalars or arrays of type single with scalars or arrays of an integer data type.


Previous page  Data Type single The Function eps Next page

© 1994-2005 The MathWorks, Inc.