Ben Coman wrote:
PRMarkdownWriter >>visitAnnotatedParagraph: says "Pier seems to lack
consistency here ...".
Indeed, for #visitAnnotatedParagraph: we currently have:
* PRPillarWriter outputs all annotations unchanged
* PRMarkdownWriter
* prepends the the annotationLabel to the annotationTex
On Sun, Jun 1, 2014 at 11:37 AM, Ben Coman wrote:
> etc! This is since existing PRTextWriter throws the annotation label away.
> So on the side of:
> * "include annotation label" we have PRMarkdownWriter & PRLaTeXWriter,
> * "exclude annotation label" we have PRHTMLWriter & PRTextWriter.
> To res
Hi Sven.
First of all, I know that in VisualWorks there exists a class called
FixedPoint, that is (more or less) similar to ScaledDecimal (is what the
class comment says). But, instead of 123.45s2, VWs writes 123.45s.
NEVERTHELESS, it can read 123.45s2 with no pain.
There exists a Fraction type a
And this is an improved version. More changes to avoid parsing weird things
as 123.456s3e2 (it could be improved, for sure, but I don't have any more
time...)
parseNumber
| negated number |
negated := readStream peekFor: $-.
number := self parseNumberInteger.
(readStream peekFor: $.)
ifTrue: [ num
One last thing. If you do:
sd := STON fromString: '1345.76s2'.
sd2 := ScaledDecimal readFromString: '1345.76s2'.
you can note that sd = sd2 returns false, and that sd - sd2 returns 0.00s2.
Both numbers are different in the order of precision, because the first has
numerator 5918715072783319 and d
Thanks for the help Ben. Submitted!
--
View this message in context:
http://forum.world.st/Mac-keyboard-bindings-tp4760656p4761232.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
darrinm wrote:
Thanks for the help Ben. Submitted!
--
View this message in context:
http://forum.world.st/Mac-keyboard-bindings-tp4760656p4761232.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Cool. Now its good practice to end the mail thread with a link t
Ben Coman wrote:
darrinm wrote:
Thanks for the help Ben. Submitted!
--
View this message in context:
http://forum.world.st/Mac-keyboard-bindings-tp4760656p4761232.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Cool. Now its good practice to end the mail t