Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How do I convert a number to a fraction and vice versa?

by PodMaster (Abbot)
on Jul 26, 2003 at 10:32 UTC ( #278080=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Number::Fraction;
    
    ...
    print join('x', @dimensions);
    print $aspect;
    print $aspect->to_num;
    
  2. or download this
    320x240
    4/3
    1.33333333333333
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-05-20 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?