Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: 02.5 == 25 - WTF?

by GrandFather (Saint)
on Dec 01, 2020 at 03:39 UTC ( [id://11124440]=note: print w/replies, xml ) Need Help??


in reply to Re: 02.5 == 25 - WTF?
in thread 02.5 == 25 - WTF?

Using Perl to drive moderately high power electronics (400W) does give "smoke testing" a whole other meaning - perhaps closer the the original meaning?

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^3: 02.5 == 25 - WTF?
by syphilis (Archbishop) on Dec 01, 2020 at 04:26 UTC
    It's probably overkill, but I'll give it a plug, anyway:
    C:\>perl -MMath::MPFR -le "print Math::MPFR->new('2.5', 8);" 2.625
    Math::GMPf is another perl module that can convert octal floating point values to decimal.
    Are there any other modules doing that ? (I would expect so, but I haven't checked.)
    I couldn't spot any built-in perl functions that will readily do this.

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-29 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found