tssing Posted June 17, 2008 Share Posted June 17, 2008 Evaluate("0x"+"C0600000") StrToDouble("0x"+"C0600000") Above two function return value no correct... You can put in "watch window" to monitor.... Second you can use calculators to calculate... Link to comment Share on other sites More sharing options...
AzeoTech Posted June 17, 2008 Share Posted June 17, 2008 As it says in the help, using the "0x" notation only works for values between 0 and 2^31. The value you are entering is > 2^31 and so the value being returned is actually 2^31-1 (i.e. 0x7ffffff). If you need to do values > 0x7fffffff you should split it and recombine: evaluate("0xC060") * 2^16 + evaluate("0x0000") In this sample, the second part is not needed since its 0, but I included it to make the point. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.