[Date Index] [Thread Index] [Author Index]
Re: Howto turn off using symbols to tag objects?
Perhaps k has been assigned a numerical value prior to your expression. For example, In:= k = 1; NumberQ[ToExpression["123k"]] Out= True This is the result to be expected. But now look at In:= Clear[k]; NumberQ[ToExpression["123k"]] Out= False If k is a number, i.e., it has been already assigned a numerical value, then 123k is evaluated first and returns a numerical value, namely 123 times k. Tomas Garza Mexico City ----- Original Message ----- From: "mvyver" <mvdv at spamcop.net> To: mathgroup at smc.vnet.net Subject: [mg46618] [mg46593] Howto turn off using symbols to tag objects? > Hi, Does anyone know how to turn this feature off? > The section in the documentation "Using symbols to tag objects" is > silent. > My problem is that when trying to remove alphabet characters from a > string I'm told that "123k" is a number!! > > NumberQ[ToExpression["123k"]] > True > > Using ToExpression with different forms doesn't help. > Any suggestions would be appreciated. > Thanks in advance > > Mark > >