Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Unpacking extended-double precision floats

by herveus (Prior)
on Nov 29, 2006 at 17:51 UTC ( [id://586761]=note: print w/replies, xml ) Need Help??


in reply to Re: Unpacking extended-double precision floats
in thread Unpacking extended-double precision floats

Howdy!

Thanks for trying (and no, I'm not being snarky). That doesn't quite cover my situation.

f is a 32-bit "single-precision" float.

d is a 64-bit "double-precision" float.

I'm dealing with 80-bit "extended-double-precision" floats.

yours,
Michael
  • Comment on Re^2: Unpacking extended-double precision floats

Replies are listed 'Best First'.
Re^3: Unpacking extended-double precision floats
by Fengor (Pilgrim) on Nov 29, 2006 at 17:58 UTC
    yeah after looking a bit deeper into it i figured as much. Hmm maybe since pack converts into double-precision representation as it is provided by your system it would be possible to fool perl into believing double precision would take 80 bytes instead of 64?

    I'm reading through the POD of the Config Module as i write this and found the variables d_dbl_digit and d_ldbl_digit to be interesting. but it seems the Config module only supplies readonly access to those variables :/

    --
    "WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN"
    -- Terry Pratchett, "Reaper Man"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-04-16 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found