target has asked for the wisdom of the Perl Monks concerning the following question:
The place I'm running into trouble is the parseInt(v,16) line. I looked it up on a java script tutorial site but am having trouble finding a similar function in perl, according to the above link, "The parseInt function parses its first argument, a string, and attempts to return an integer of the specified radix (base)".y=3710 v=Math.sqrt(y) v=parseInt(v,16)
Edited by dws for title descriptiveness
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: JavaScript parseInt()
by jryan (Vicar) on Feb 09, 2002 at 00:41 UTC | |
by target (Beadle) on Feb 09, 2002 at 17:16 UTC | |
|
Re: JavaScript parseInt()
by dws (Chancellor) on Feb 09, 2002 at 00:39 UTC | |
|
Re: Perl equivalent of JavaScript parseInt()?
by Anonymous Monk on Nov 18, 2019 at 19:07 UTC |