I have a Variable assigned a value, say
ImportantDocuments=1
How do I make
N["ImportantDocuments"]
evaluate to be
1
instead of
ImportantDocuments
I found that
N[ToExpression["ImportantDocuments"]]
gives the correct answer.
I have a Variable assigned a value, say
ImportantDocuments=1
How do I make
N["ImportantDocuments"]
evaluate to be
1
instead of
ImportantDocuments
I found that
N[ToExpression["ImportantDocuments"]]
gives the correct answer.
N[...]
will give you1.
, not1
:D Jokes aside, to answer your question, look upSymbol
andToExpression
. $\endgroup$ – rm -rf♦ Jan 8 '14 at 2:07