I vote for the NumberFormatter. It adds another layer, which can be a pain, but
gives you much more flexibility. Plus it decouples the formatting from all of
the number classes. VA Smalltalk has something like this.
Brad Selfridge
913-269-2385
> On Nov 14, 2016, at 8:38 AM, Sven Van Caekenberg
I am voting against because both methods are very similar while we are trying
to clean.
Also, if I would have to present a number I would personally always prefer the
.00 for uniformity.
But I understand what you want. I think a NumberFormatter object would be
better -- what about thousands se
Hi!
I have a problem in an application, I need to print some numbers with 2
decimals max. The numbers can be an Integer, Float or Fraction. I
checked and found Number>>#printShowingDecimalPlaces:. This is cool but
this is not what I want because when I get "10", I want to print "10"
and not "10.00