Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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.


Comment on Re: perl to protoype algortithms
Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-08-23 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (176 votes), past polls