View Full Version : 512 bit precision under Visual C++ 6?
K.I.L.E.R
21-Mar-2003, 14:37
I am wondering if 512-bit numerical values are acceptable? I can't seem to find anything that can allow them.
All help is appreciated.
BTW: In future if I want to post questions about coding that is not 3d related, should I post them under general forums or here?, I am confused because this forum is said to be about 3d coding and architectures and I am posting about heavy mathemetical calculations (I am interested in doing that stuff okay :P). :)
Thanks
Simon F
21-Mar-2003, 14:43
You could try downloading and compiling the GNU multiprecision library:
From the readme:"GNU MP is a library for arbitrary precision arithmetic, operating on signed integers and rational numbers. It has a rich set of functions, and the functions have a regular interface....."
I was messing about with it a while back for my own entertainment (sad, I know) under Unix, but it might compile with windoze.
RussSchultz
21-Mar-2003, 14:46
You'll have to write your own libraries for handling values over 64 bits, even the long double is only 8 bytes long.
BoardBonobo
21-Mar-2003, 14:53
I think you'll find that C++ only supports 32bit floats natively. If you want to use arbitary precison arithmetic then you'll either have to download a pre-built library or build you own.
arjan de lumens
21-Mar-2003, 15:08
I am wondering if 512-bit numerical values are acceptable? I can't seem to find anything that can allow them.
All help is appreciated.
No C/C++ compiler that I am aware of supports natively integer types wider than 64 bits or floating-point types wider than 80 bits (most compilers are limited to 64 bits). So you have to either use existing multiprecision libraries, such as GMP (a bit tricky to make to work under MSVC - look here (http://fp.gladman.plus.com/computing/gmp4win.htm) for a preliminary port) or roll your own.
BTW: In future if I want to post questions about coding that is not 3d related, should I post them under general forums or here?, I am confused because this forum is said to be about 3d coding and architectures and I am posting about heavy mathemetical calculations (I am interested in doing that stuff okay :P). :)
The 'Software Talk' forum?
K.I.L.E.R
21-Mar-2003, 15:35
Thanks for the very quick responses guys. :)
I also just seen that software development is ment to be in the software forum. :oops:
Ta
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.