Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Modulo of fraction?

by chipmonkey (Initiate)
on Jun 27, 2005 at 16:33 UTC ( [id://470322]=note: print w/replies, xml ) Need Help??


in reply to Modulo of fraction?

For archival purposes,
# get the fractional portion of a number sub frac { $_[0]-int($_[0]) } # find the remainder in a real division sub rem { $_[1]*frac($_[0]/$_[1]) }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://470322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found