Re: [Pharo-users] High precision arithmetic

2015-02-03 Thread Pierre CHANSON
Hi Werner, you are right, I will try it 2015-02-03 10:22 GMT-03:00 Ben Coman : > > > On Tue, Feb 3, 2015 at 12:58 AM, p...@highoctane.be > wrote: > >> On Mon, Feb 2, 2015 at 5:22 PM, Pierre CHANSON >> wrote: >> >>> Hi everyone, >>> I was wondering if there was a package to manipulate floats lik

Re: [Pharo-users] High precision arithmetic

2015-02-03 Thread Ben Coman
On Tue, Feb 3, 2015 at 12:58 AM, p...@highoctane.be wrote: > On Mon, Feb 2, 2015 at 5:22 PM, Pierre CHANSON > wrote: > >> Hi everyone, >> I was wondering if there was a package to manipulate floats like the MPFR >> library in C... >> > > One issue with MPFR is the licensing, which is GNU. > No,

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Werner Kassens
Hi Stephane, it _is_ in scitalk, at the moment only in the #development version, but i'd guess, that will change in a while. Hi Pierre, the problem - as Stephane pointed out - is that ScaledDecimal essentially is a Fraction, which depending on which function you use can be transformed to Flo

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread stepharo
we should move it to scitalk ;) Le 2/2/15 17:51, Werner Kassens a écrit : Hi Pierre, you will find an ArbitraryPrecisionFloat package at sqeaksource that works eg in pharo3 & 4: http://www.squeaksource.com/ArbitraryPrecisionFl.html werner

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Hilaire
Le 02/02/2015 19:11, Pierre CHANSON a écrit : > > 2015-02-02 13:49 GMT-03:00 stepharo > >: > > Pay attention ScaledDecimal are just fraction. > > > Yes sure but I think it would be ok for me later, for example using > ScaledDecimal readFrom: '0.065150313600993

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Marcus Denker
> On 02 Feb 2015, at 17:58, p...@highoctane.be wrote: > > On Mon, Feb 2, 2015 at 5:22 PM, Pierre CHANSON > wrote: > Hi everyone, > I was wondering if there was a package to manipulate floats like the MPFR > library in C... > > One issue with MPFR is the licensin

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Pierre CHANSON
2015-02-02 13:49 GMT-03:00 stepharo : > Pay attention ScaledDecimal are just fraction. Yes sure but I think it would be ok for me later, for example using ScaledDecimal readFrom: '0.06515031360099368', then I can manipulate this.

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Pierre CHANSON
2015-02-02 13:51 GMT-03:00 Werner Kassens : > Hi Pierre, > you will find an ArbitraryPrecisionFloat package at sqeaksource that works > eg in pharo3 & 4: > http://www.squeaksource.com/ArbitraryPrecisionFl.html > Thanks Werner, I will have a look

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread p...@highoctane.be
On Mon, Feb 2, 2015 at 5:22 PM, Pierre CHANSON wrote: > Hi everyone, > I was wondering if there was a package to manipulate floats like the MPFR > library in C... > One issue with MPFR is the licensing, which is GNU. I wonder if Pharo couldn't get a special licence for embedding as "MPFR has co

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread stepharo
Then I found in http://stephane.ducasse.free.fr/Web/Draft/Float.pdf that using ScaledDecimal allows exact arithmetics. So I guess ScaledDecimal is the best class to use for playing with 20 decimals numbers ? :) I always thought that we should look into using MPFR. There is no way that we

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Werner Kassens
Hi Pierre, you will find an ArbitraryPrecisionFloat package at sqeaksource that works eg in pharo3 & 4: http://www.squeaksource.com/ArbitraryPrecisionFl.html werner

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread stepharo
Pay attention ScaledDecimal are just fraction. Le 2/2/15 17:22, Pierre CHANSON a écrit : Hi everyone, I was wondering if there was a package to manipulate floats like the MPFR library in C... Then I found in http://stephane.ducasse.free.fr/Web/Draft/Float.pdf that using ScaledDecimal allows ex

Re: [Pharo-users] High precision arithmetic

2015-02-02 Thread Marcus Denker
> On 02 Feb 2015, at 17:22, Pierre CHANSON wrote: > > Hi everyone, > I was wondering if there was a package to manipulate floats like the MPFR > library in C… > Then I found in http://stephane.ducasse.free.fr/Web/Draft/Float.pdf > that u