How do you print 'nicely' in LEDA? I am looking for the equivalent to fixed setprecision(3)
A:
I have got a little way with this
bigfloat::set_fixed; //This does not work.What is the equivalent in bigfloat
bigfloat::set_precision( 3); //This does not seem to do anything but does work
Hugh
2010-10-20 12:00:43
Please don't add answers that are not answers actually. Please edit your question instead. And still you didn't respond to the above comments either. No one knows how to help you unless you give specific details. Best you read http://tinyurl.com/so-hints.
0xA3
2010-10-20 16:59:26
A:
I have got a little further with this. There is a difference between precision and output precision.
I can set LEDA's output precision with e.g bigfloat::set_output_precision(4);
but I still do not know what LEDA's equivalent to fixed is.
Also, I do not know what the latest LEDA of todouble is
I have tried mu.todouble() where mu is declared as a bigfloat, but I get a compiler error
Hugh
2010-10-20 16:03:28