Re: Converting Int to real
- From: dpb <none@xxxxxxx>
- Date: Sat, 29 Nov 2008 09:12:00 -0600
BigLadson smith wrote:
how do you convert a int to a real number in matlab. I need this to
do a divide 2 numbvers
From documentation on data types --
Numeric data types include signed and unsigned integers, single- and
double- precision floating point, and sparse matrices of double-precision.
The following hold true for numeric data types in MATLAB:
All MATLAB computations are done in double-precision.
Integer and single precision arrays offer more memory efficient
storage than double-precision.
All data types support basic array operations, such as subscripting
and reshaping.
To perform mathematical operations on integer or single precision
arrays, you must convert them to double precision using the double function.
--
.
Relevant Pages
- Re: Chipmunk Basic arrays (Attn: Ron Nicholson)
... In an infinite-precision machine, 0.1 is stored exactly. ... defaulting to double-precision variables is the best choice. ... want or need higher precision in doing those. ... Programmers can make unfounded assumptions -- or reflex reactions ... (comp.lang.basic.misc) - Re: double-precision number and imwrite (image pro
... > requires manipulating the last few digits of a double-precision ... the imwrite function that MATLAB provides won?t save ... Then you should be able to choose "any" precision ... (comp.soft-sys.matlab) - Re: high-precision eigenvalue solver
... I found a library in c++ supporting ... > quadruple precision and the problem is solved at last with the help of ... The double-precision operations take the same time ... on superscalar processors like the Pentia, the extra memory-access ... (sci.math.num-analysis) - Re: floating point precision
... Your internal calculations can be carried out with double-precision all the ... But when it comes to D3D, you'll send single-precision floats in ... Microsoft DirectX MVP, ... > only allows for single precision... ... (microsoft.public.win32.programmer.directx.graphics) - Re: Precision and Accuracy of Elementary Functions in MATLAB
... exploring MATLAB as the programming language seems more accessible. ... Not so with with elementary functions. ... These operate in double or single precision, ... If you pass a double array into the Symbolic Math Toolbox, ... (comp.soft-sys.matlab) |
|