Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: perl to protoype algortithms

by c-era (Curate)
on Jun 12, 2002 at 18:47 UTC ( #173957=note: print w/replies, xml ) Need Help??


in reply to perl to protoype algorithms

First, are you meaning to call a sub routine? $r=c($w/24); If you are, you need to post it. When I change that line to $r=($w/24); I get the same answer as java.

As for prototyping in another language, I tend to avoid it. Each language will have some features/bugs that don't exist in the language you are prototyping in, which can either cause problems in the conversion, or not let you make use of the features of that language.

Replies are listed 'Best First'.
Re: Re: perl to protoype algortithms
by adamcrussell (Hermit) on Jun 12, 2002 at 18:51 UTC
    For some very annoying reason I cannot update this node. The line you mention is, in fact , a typo and should read
    $r=ceil($w/24)
    The ceil function is provided by the POSIX module.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://173957]
help
Chatterbox?
[Corion]: Hi marto! I hope all is well!
[marto]: Corion, pretty much. How are things? You were at LPW?
[Corion]: marto: Yep, but I didn't make it up north, sorry ;)

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2016-12-07 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.