Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-23 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found