Re: Got a tip ?
- To: mathgroup at smc.vnet.net
- Subject: [mg97871] Re: Got a tip ?
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Tue, 24 Mar 2009 05:32:10 -0500 (EST)
On 3/23/09 at 4:05 AM, Tekcitizen at hotmail.com (Fabrizio) wrote: >I want to write a function that translates its argument (which is a >letter of the alphabet) into a numerical value. >f[a] = 1 f[b] = 2 Use the built-in function ToCharacterCode, i.e., In:= First@ToCharacterCode["a"] Out= 97