Hello,

Downloaded with Microsoft Edge (on Windows):
┌──(greg㉿ellipse)-[~/Git/jlfricas/src/algebra]
└─$ cat /mnt/c/Users/gregv/Downloads/FLOAT.diff |patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file FLOAT.spad

I guessed it has to be applied on the extracted FLOAT.spad file during
the build. It works fine thanks but is this expected:

Before and after

(1) -> toString(3.7,30)

   (1)  "3.700000000000000000002684354560"

                           Type: String

             Time: 0.04 (OT) = 0.06 sec
(2) -> )lib FLOAT
   Float is now explicitly exposed in frame frame1
   Float will be automatically loaded when needed from
/home/greg/Git/jlfricas/FLOAT.NRLIB/FLOAT
(2) -> toString(3.7,30)

   (2)  "3.700000000000000000002710505431"

                           Type: String

Using 30 is of course not judicious since by default digits() = 20, I
wonder what can be returned with this argument.

- Greg



Le lun. 5 août 2024 à 03:12, Waldek Hebisch <[email protected]> a écrit :
>
> On Sat, Jul 27, 2024 at 05:25:52PM +0200, Grégory Vanuxem wrote:
> > No. toString(3.7,20)
> >
> > Le sam. 27 juil. 2024 à 17:24, Waldek Hebisch <[email protected]> a écrit :
> > >
> > > On Sat, Jul 27, 2024 at 03:31:57PM +0200, Grégory Vanuxem wrote:
> > > > =>
> > > > (1)  "4.30000000000000000000"
> > > >
> > > > I wanted to use it, but apparently not now ;)
>
> AFAICS the attached patch fixes the problem for Float.  To handle
> DoubleFloat we probably should move floating point formatting to
> a separate package and use approptiate routine from this package
> also for DoubleFloat.  In fact, I would prefer to do _all_
> DoubleFloat formatting via such a package (so get rid of Lisp
> formatting).
>
> --
>                               Waldek Hebisch
>
> --
> You received this message because you are subscribed to the Google Groups 
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/fricas-devel/ZrAnAxhlBl_NEtZd%40fricas.org.

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2daL1pN4aRP%2BVQtG4TGo_7g8KRnh%3DRMu9%3D3Cw_gQtO7T%3Dw%40mail.gmail.com.

Reply via email to