Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: perl to protoype algortithms

by c-era (Curate)
on Jun 12, 2002 at 18:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://173957]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found