Data Coversion

Data Coversion

Portrait de Community Admin

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 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Portrait de Steve Lionel (Intel)

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

Steve

Connectez-vous pour laisser un commentaire.