Can you please point out the relevant code in Maxima that does the
printing of floats? Then I could isolate the bug, check agains the CLHS
and report it to SBCL if necessary.
Thanks,
Tamas
On Sat, Dec 28 2013, Richard Fateman wrote:
> A GCL version of Maxima prints 0.19 [that is, 4 character positions]
> for both numbers.
>
> I don't understand the SBCL result. It seems to be either a bug in
> SBCL or Maxima.
> RJF
>
> On 12/28/2013 6:18 AM, Tamas Papp wrote:
>> Hi,
>>
>> I am using Emaxima for some calculations embedded in a LaTeX document.
>> I find it really nice, but in order to interpret my results better I set
>> fpprintprec to a lower value (too many digits are a distraction). This
>> helps, but I find that printing of the leading 0 is not consistent: my
>> guess is that it is only printed when trailing zeros can be chopped off:
>>
>> --8<---------------cut here---------------start------------->8---
>> (%i190) fpprintprec:4;
>> (%o190) 4
>> (%i191) 0.1868;
>> (%o191) .1868
>> (%i192) 0.1860;
>> (%o192) 0.186
>> (%i193) build_info();
>> (%o193)
>> Maxima version: "branch_5_30_base_276_g2c67321"
>> Maxima build date: "2013-11-02 15:53:20"
>> Host type: "x86_64-unknown-linux-gnu"
>> Lisp implementation type: "SBCL"
>> Lisp implementation version: "1.1.13"
>> --8<---------------cut here---------------end--------------->8---
>>
>> I found a thread [1] about a similar problem, but I am not sure it is
>> the same one. Am I using fpprintprec incorrectly? Or is this a a bug?
>>
>> Best,
>>
>> Tamas
>>
>> [1] http://www.math.utexas.edu/pipermail/maxima/2010/022232.html
>>
>> _______________________________________________
>> Maxima mailing list
>> Maxima at math.utexas.edu
>> http://www.math.utexas.edu/mailman/listinfo/maxima