Data Coversion

Data Coversion

imagem 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 new
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.
imagem 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

Faça login para deixar um comentário.