using , as decimal point

Lukas Renggli renggli at gmail.com
Mon Mar 15 09:52:14 MET 2010


Yes, that should do it.

On 15 March 2010 09:42, Norbert Hartl <norbert at hartl.name> wrote:
>
> On 15.03.2010, at 09:10, Lukas Renggli wrote:
>
>>> Do you have any ideas how to treat this case? I'm not sure if converting at the appropriate locations is feasible.
>>
>> It is probably the easiest if you replace all the $, with $. before
>> you pass it on to #readFrom:
>>
> Do you think it is feasible to change
>
> MAStringReader>>visitNumberDescription:
>
> from
>
> (contents occurrencesOf: $.) > 1
>                ifTrue: [ MAReadError signal ].
>
> to
>
> (contents occurrencesOf: aDescription decimalPoint) > 1
>                ifTrue: [ MAReadError signal ].
> (contents occurrencesOf: aDescription decimalPoint) = 1
>                ifTrue: [ contents := contents copyReplaceAll: aDescription decimalPoint with: '.' ].
>
> ?
>
> Norbert
> _______________________________________________
> Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>



-- 
Lukas Renggli
http://www.lukas-renggli.ch



More information about the smallwiki mailing list