Thanks for your time. I just found a function called ap2double(..) which
seems to do waht I want, did not success in linking the program yet. Will
report if that is the function I am looking for or not.
BTW, I got another problem during linking, mingw complains the one function
"truncate" was a undefined reference from a call in file "datastru.cpp". I
understand this normally is caused by a missing function in library file.
Then I checked the library file and found "truncate.o" is the last object
file in this archive.
any idea why mingw linker complains? thanks.
"Erik Wikström" <Er***********@telia.comwrote in message
news:7c*******************@newsb.telia.net...
On 2007-04-24 18:45, hyena wrote:
>Hi,
I am trying to use apfloat (http://www.apfloat.org)package to calculate
a production of a series probabilities. After the calculation, I need to
convert the result from apfloat type to normal double type, I could not
find a place to put this question, and thought maybe I could get some
help in this group:)
A quick look at the documentation suggest that you could wite it to a
stringstream and read it back into a double, beware of the loss of
precision though. I didn't bother to read more than that so there might be
a better method supported by the package.
--
Erik Wikström