Fórum Como transformar Integer em Word? #274439
29/03/2005
0
desde ja agradeco
[]s
Titanius
Curtir tópico
+ 0Posts
29/03/2005
Repa
Gostei + 0
29/03/2005
Gandalf.nho
Gostei + 0
29/03/2005
Titanius
muito obrigado
[]s
Gostei + 0
29/03/2005
Antseralves
integer ; -2147483648..2147483647signed 32-bit
Word; 0..65535unsigned 16-bit
Se I : integer;
W : word;
então
I := 78;
W := I; { sem problemas }
I := -78
W := I { se Range checking ligado então ERRO ! }
{ se Range checking desligado então W = 65458;
valor maluco }
W := Abs(I); { se I > 65535 ou < -65535 e range checking ligado
então ERRO}
{ se range checking desligado, valor maluco}
Espero ter ajudado um pouco...
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)