English
Bugs and vermeintliche

XProfan X2

Signed ./. UnSigned -trouble with Hexkonstanten?

 
- Page 1 -


Imho becomes this View source:

not correctly worn out:



Hierbei set I x& on the worth $FFFFFFFE and question thereafter x& ex whether it whom same worth $FFFFFFFE own. becomes but "nein" determined.

or übersehe I thereby something?

so GEHTS:
cls
print $profVer
var x&=-2
casenot x&=-2 : messageBox "Fehler","",0
waitInput
end

so not:
and so GEHTS too:

2 kB
Hochgeladen:02/10/11
Downloadcounter255
Download
 
02/10/11  
 



 
- Page 2 -



RGH
$FFFFFFE is of itself from now time one positiver worth. too Hexwerte can with a omen slip go, -2 would in Hex now time -$2.

nevertheless can the worth one Longint without Overflow-Message allocated go. even yet more values. (the was sure a bewußte decision, there too a Error Message possible been would.)

then go simply The niedrigsten 4 byte (=32 bit) the Wertes. there but with one Signed-Longint (as well as with one Signed-Quad) the supreme bit for the omen standing, goes the Wertebereich even only To $7FFFFFFF. values ex $80000000 then as negative interprets (Überlauf).

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/11  
 



this is me so already clear.

a& as signedLong has whom Wertebereich of -2147483648 To +2147483647 -

if a& means the value -2 carry, then stand The Bytes on FE FF FF FF just as as Bytes with $FFFFFFFE on FE FF FF FF stand.

I have Yes same understood, that the XProfan in this drop the $FFFFFFFE even differently "interpretiert" and the it for a Statement (omen) gives.

I find however somehow neither correctly., that one 32-bit-Long with worth -2 not the Bytefolge $FFFFFFFE coincide but should can it naturally to accept there by the $/Hex-characters nunmal then in XProfan not 1:1 The Bytes meant his must separate even a "Interpretation".
 
02/10/11  
 



to-zei-chen-bit...
 
02/10/11  
 



Frabbing (10.02.11)
to-zei-chen-bit...


Ah, you mean to-zei-chen-bit, not about Vorzei-chenbit or quite V-orzeiche-nbit or. vo-rze-I-enb-it - No, its the to-zei-chen-bit.

the missing still but not $FFFFFFFE - means is still clear with the bit the it itself ums Vorzeichenbit deals if with 32-bit-Long compared becomes.

somehow be I well To stumpf... ^^
 
02/10/11  
 



where is because the Vorzeichenbit?
 
02/10/11  
 




RGH
the Vorzeichenbit is the höchstwertige bit, means jenes, the with $80000000 staid becomes, if it itself for a vorzeichenloses Longint deals.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/11  
 



old Spielverderber.
 
02/10/11  
 



@Frank: to-zei-chen-bit...
 
02/10/11  
 



Frabbing (10.02.11)
very, then schreib time -2 as 32 and as 64 bit-number binary among themselves and you should your mistake discern...


Schreib time $FFFFFFFE and -2 each 32-Bittig among themselves and the power of Grayskull is mitdir...
 
02/10/11  
 




Schreib time $FFFFFFFE and -2 each 32-Bittig among themselves


is Yes no challenge.
there's the puzzel the whole disappeared Postings today already rätselhafter...
 
02/10/11  
 




RGH
The following Program shows (ex the next Delivery the Subscriptionsversion)* The Zusammenhänge:

* currently there another couple Problems with QuadInts, as they as Parameter on Procedures transfer and be moreover needed Delphi yet something Nachhilfe, so The binären Operators too with Int64 (=Quad) functions, what moreover led that |, &, <<, >>, TestBit() and SetBit() only To 32 bit correctly funktionierten.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/11/11  
 



task: "Setzen tappt im dunkeln on possible coole Nature and point with XProfan the 2. bit the Wertes of/ one 32-bit-Long-Variable!"

Solution:
l = -$FFFFFFFE

 
02/11/11  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

24.601 Views

Untitledvor 0 min.
iF01/02/16
Georg Teles01/02/16
E.T.12/26/15
Jörg Sellmeyer11/18/15
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie