Software Archive
Read-only legacy content

Data Coversion

Intel_C_Intel
Employee
489 Views
1. Is it the data conversion of real(8) to interger(4) valid for the above O/S and P IV machine?
2. What is the maximum length of the integer(4) and real(8)?
3. Is the random number generator dependence to the different type of computer?
0 Kudos
1 Reply
Steven_L_Intel1
Employee
489 Views
1. What do you mean by "valid"? You can do the conversion, if the real number isn't outside the range for integer(4). 2. The Programmer's Guide lists the ranges of the various datatypes in the chapter Data Representation. 3. If you mean different processor type for the same program, built with the same compiler, no. However, there is no guarantee that you'll get the same sequence when using two different compilers or even two different versions of the same compiler.

Steve
0 Kudos
Reply