Re: further tests Re: Float printString?

Holger Freyther <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.gnu.general
Message-ID <[email protected]>
> On 06 Jul 2016, at 13:49, Robert Kuszinger <[email protected]> wrote:
> 
> 
> Dear Holger,

Hi!

> 
> So, -13 - 54 = -67
> 
> 2^(-67) with calculator:       2^(-67) = 6.7762636e-21
> 
> 
> Evaluating the following leads to the same:
> 
> st> 2 raisedToInteger: -67
> Object: 1 error: The program attempted to divide a number by zero
> ZeroDivide(Exception)>>signal (ExcHandling.st:254)
> SmallInteger(Number)>>zeroDivide (SysExcept.st:1386)
> Fraction>>setNumerator:setDenominator: (Fraction.st:485)
> Fraction class>>numerator:denominator: (Fraction.st:66)
> Fraction>>raisedToInteger: (Fraction.st:510)
> SmallInteger(Number)>>raisedToInteger: (Number.st:922)
> UndefinedObject>>executeStatements (a String:1)

how did you compile GST? Is this with GMP enabled or not?

st> 2.0 raisedToInteger: -67
6.776263578034403d-21

st>  2 raisedToInteger: -67
1/147573952589676412928
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.