[squeak-dev] Bug in printShowingDecimalPlaces: ??

David T. Lewis lewis at mail.msen.com
Sat Nov 3 21:09:31 UTC 2012


On Sat, Nov 03, 2012 at 09:49:04PM +0100, Herbert K?nig wrote:
> Hi Folks,
> 
> is there a reason why Float>>printOn: aStream showingDecimalPlaces: 
> placesDesired
> 
> always prints '0.0' or was it just forgotten to deal with the desired 
> decimal places in this case? Nicolas?

Looks ok to me:

  ws := WriteStream on: ''.
  Float pi printOn: ws showingDecimalPlaces: 4.
  ws contents ==> '3.1416'

Where are you seeing the problem?

Dave



More information about the Squeak-dev mailing list