[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strings-->Numbers

Norman W. Schaeffler wrote:
> Try the parseInt and parseFloat functions. They turn strings into
> numbers. As close to typecasting as you can get in JavaScript!

And what about making JavaScript to treat a number as a string?
I have a function that returns a substring of something, sometimes a number..
If it is a number, Java uses it as an integer, an the leading 0 (zero),
if ther is one, is lost.
But i need it, so what....?

Thanks for help

Olaf Walkowiak, Suedeseestr.14, D-45145 Essen, Phone:+49-201-604594
si0015@aixrs1.hrz.uni-essen.de			OlafWal@aol.com
Request PGP public key by E-Mail
PGP fingerprint: 55 BF 58 7A E9 DC FF 28 33 31 A6 B8 FB A1 28 A6

This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.