The definitive Wolfram Language and notebook experience
The original technical computing environment
All-in-one AI assistance for your Wolfram experience
More mobile apps
We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise
WolframConsulting.com
More Wolfram Solutions
More Solutions for Education
Courses in computing, science, life and more
Learn, solve problems and share ideas.
News, views and insights from Wolfram
Resources for
int MLPutReal64(MLINK link,double x)
把双精度浮点数 x 写入由 link 指定的 MathLink 连接.
#include "mathlink.h"/* put the expression Sqrt[2.7] to a link */void f(MLINK lp){ if(! MLPutFunction(lp, "Sqrt", 1)) { /* unable to put Sqrt[] to lp */ } if(! MLPutReal64(lp, 2.7)) { /* unable to put 2.7 to lp */ } if(! MLEndPacket(lp)) { /* unable to put the end-of-packet sequence to lp */ } if(! MLFlush(lp)) { /* unable to flush any output buffered in lp */ }}
C 函数: MLPutReal32() MLPutReal128()
2007年引入 (6.0)