APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Conversion of ascii to numerical code and vice-versa

Return to the EJS Modeling forum
Login to post to this thread

Conversion of ascii to numerical code and vice-versa
Fernando Silva Fernandes
10 Posts

Hello,
In Wolfram's Mathematica:

tobe ="tobeornottobe"

keyPhrase=ToCharacterCode [tobe]

gives: {116, 111, 98, 101, 111, 114, 110, 111, 116, 116, 111, 98, 101}
-----------
parent = FromCharacterCode[keyPhrase]

reproduces "tobeornottobe"
-----------

How to do it in EJS?

Thanks,
Fernando


OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book