Thanks, Ron.  I needed to preserve the negative, so I append a minus sign, then 
use your snippet.
,

str := '($1,925.46)' .
('(*)' match: str ) ifTrue: [str := '-', str].
str := str reject:  [:e | '($,)' includes: e].
num := str asNumber  => -1925.46

Sincerely,

Joe.






--
View this message in context: 
http://forum.world.st/1-925-46-asNumber-tp4904523p4904534.html
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to