推扬网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
推扬网 门户 你问我答 查看内容

求remainder函数的用法?

2020-7-13 18:03| 发布者: admin| 查看: 97| 评论: 0

摘要: 杨必宇frippy的回答 remainder()函数还有以下三种很少被使用的参数类型:double remainder( double x, double y )。float remainderf( float x, float y )。long double remainderl (long double x,long double y)。 ...

杨必宇frippy的回答

remainder()函数还有以下三种很少被使用的参数类型:

double remainder( double x, double y )。

float remainderf( float x, float y )。

long double remainderl (long double x,long double y)。

返回的都是 x/y 的余数 , r = x – ny , n 是接近 x/y 实际值的整数。

扩展资料:

常用的函数库实现程序,例如 I/O输入输出和字串符控制。不像 COBOL、Forrian和 PL/I等编程语言,在 C 语言的工作任务里不会包含嵌入的关键字,所以几乎所有的 C 语言程序都是由标准函数库的函数来创建的。

Macro used for internal error detection.

 (Ignored if NDEBUG is defined where <assert.h> is included.) If expression equals zero。

message printed on stderr and abort called to terminate execution. 

Source filename and line number in message are from preprocessor macros __FILE__ and __LINE__.

参考资料来源:百度百科-c语言标准函数库

abcd4321too的回答

这是一种函数语言:

功能
返回一个整数除以另一个整数之后产生的余数。

语法
REMAINDER ( int a, int b );

要学编程,一定要把自己没把握的函数多试验试验才行!!!

remainder()函数还有以下三种很少被使用的参数类型:

double remainder( double x, double y );
float remainderf( float x, float y );
long double remainderl (long double x,long double y);

返回的都是 x/y 的余数 , r = x – ny , n 是接近 x/y 实际值的整数;
如果实际的商在两个整数之间,就向偶数舍入,这样定义的余数可以是正也可以是负

鲜花

握手

雷人

路过

鸡蛋

最新评论

热门推荐
最新资讯

广告服务|投稿要求|禁言标准|版权说明|免责声明|手机版|小黑屋|推扬网 ( 粤ICP备18134897号 )|网站地图 | 邮箱:vayae@hotmail.com

GMT+8, 2024-3-29 21:12 , Processed in 0.065828 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

返回顶部