Hi Folks,
I am migrating a package from Cog to Spur and I am getting errors that I suspect are related to it.
Here is an example:
|result|
result := pairs inject: first
into: [ :base :pair |
(pair first = 'round')
ifTrue: [
(pair last >= 0)
ifTrue:[
(base >=0)
ifTrue:["Cannot store into ->"base := base roundUpTo: ((1/10) raisedTo:(pair last truncated)) asFloat]
ifFalse:[base := base roundDownTo: ((1/10) raisedTo:(pair last truncated)) asFloat]]
ifFalse:[
(base >=0)
ifTrue:[
base := base roundDownTo: ((1/10) raisedTo:(pair last truncated)) asFloat]
ifFalse:[base := base roundUpTo: ((1/10) raisedTo:(pair last truncated)) asFloat]]]].
transcripton ifTrue:[Transcript show:'PHPRoundSimple ' , (result asFloat); cr. ].
^ result
Is this related to changes in Spur?
thx
t