|
From: | Mark Bratcher |
Subject: | RE: Entering a fixed point number at the st> prompt causes divide by zero error. Is this the expected behavior. Please see below for integer, floating point, scaled decimal, and fixed point entries. |
Date: | Mon, 4 Jan 2021 19:25:24 -0500 |
What version of gst are you running? I running 3.2.91, and I get: st> 1.1 “fixed point” 1.1 … Sent from Mail for Windows 10 From: Gary Highberger st> 1 "integer" 1 st> 1.1e0 "floating point" 1.1 st> 1.1s2 "scaled decimal" 1.10s2 st> 1.1 "fixed point" Object: 1 error: The program attempted to divide a number by zero ZeroDivide(Exception)>>signal (ExcHandling.st:254) SmallInteger(Number)>>zeroDivide (SysExcept.st:1426) Fraction>>setNumerator:setDenominator: (Fraction.st:485) Fraction class>>numerator:denominator: (Fraction.st:66) Fraction>>- (Fraction.st:151) FloatD(Float)>>printOn:special: (Float.st:533) FloatD(Float)>>printOn: (Float.st:436) FloatD(Object)>>printString (Object.st:534) FloatD(Object)>>printNl (Object.st:571) |
[Prev in Thread] | Current Thread | [Next in Thread] |