[ale] Introduction

Jason Vinson vinson.lists at charter.net
Wed Dec 1 10:32:22 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Geoffrey wrote:

| Jason Vinson wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
|>
|> Geoffrey wrote:
|>
|> | ... The dream job!  You're confused though, it's the Java that
|> is | annoying you.  I mean come on, try subtracting a character
|> from a | character in order to get the numeric difference.  C ?
|> yes, Java, I |  don't think so.. | Maybe i'm misunderstanding the
|> problem, but are you saying that this is annoying:
|>
|> Character.getNumericValue('z')-Character.getNumericValue('a')
|>
|> Lengthy yes... but doable (and not that hard!)
|
|
| No, character - character = numeric:
|
| intval = '5' - '2';
|
| You cheated, and did the conversion first as well as twice. :)
|
You mentioned "Java, I don't think so...", so I just thought i'd share
a *possible* solution.

Personally, I rarely have to do character value arithmetic, so I don't
see it as that big of a problem.

To each his own though,
Jason
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBreJrAQ71cZOfvEQRAkMlAJoC3XQGzeLBZ/39R+hzkyU9ocFA8ACdFkCQ
YrNChrwq+CW2mbOpuga1JcA=
=kB3h
-----END PGP SIGNATURE-----



More information about the Ale mailing list