New topic: 

Convert A Hex value to Decimal - strange result

<http://forums.realsoftware.com/viewtopic.php?t=47975>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        tseyfarth          Post subject: Convert A Hex value to Decimal 
- strange resultPosted: Sat May 25, 2013 3:13 pm                         
Joined: Sat Dec 04, 2010 9:14 pm
Posts: 908                Hello all,

I want to convert the hex value 889FFA6115B6  To decimal.  I used the code:
Dim n As Int64
s = 889FFA6115B6
n = Val( "&h" + s )


The value of n becomes -94300746. I expected 150220681844150

Can anyone explain why this is so far off?

Thank you,
Tim   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to