Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: [OT(C)] float parameter treated as double by callee -- but it fails with FFI

by syphilis (Archbishop)
on Jun 30, 2021 at 00:30 UTC ( #11134470=note: print w/replies, xml ) Need Help??


in reply to Re^2: [OT(C)] float parameter treated as double by callee -- but it fails with FFI
in thread [OT(C)] float parameter treated as double by callee -- but it fails with FFI

A float will automatically be promoted to a double

I wasn't aware of this, either.
I've eventually located this info in K&R (2nd Edition) in section A7 - "A7.3.2 Function Calls".
Thanks for spreading the education !!

Cheers,
Rob
  • Comment on Re^3: [OT(C)] float parameter treated as double by callee -- but it fails with FFI

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-09-30 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (126 votes). Check out past polls.

    Notices?