Data Coversion

Data Coversion

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?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today