Today i was making a list of the Types that can be used and i got this weird thing.
A byte contains 8 bits.
That means the value should be between 0-255
Min: (2^0)-1 = 0
Max: (2^8)-1 = 255
But this is definitely exceeded since i can do this:
Simba Code:program Variables;
{$DEFINE SMART}
var
example : Byte ;
begin
example := 1944670000000000000000000 ;
end.
Compiled successfully in 15 ms.
Successfully executed.


Reply With Quote







