Qbasicnews.com
Get a value from a 64bit integer - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: Get a value from a 64bit integer (/thread-6387.html)



Get a value from a 64bit integer - lkd85 - 03-10-2005

Does anyone know how to access a 64bit integer in a library? If I'm right can't I use a UDT with two integers for the lo and hi value? How can I access the actual value?


Get a value from a 64bit integer - MystikShadows - 03-10-2005

Well you could multiply the first number by 2147483648 + the second number and store that in a DOUBLE or something. :-)


Get a value from a 64bit integer - DrV - 03-10-2005

See http://www.bitrake.com/phpBB2/viewtopic.php?t=62 for some excellent 64-bit integer manipulation code. You should be able to use the divide and modulus functions to write an int64 -> string converter pretty easily.