funtc15b.dat

来自「指令字典2005里面可以方便的查找一些函数」· DAT 代码 · 共 13 行

DAT
13 行
字号
modf

#include <math.h>
#include <stdio.h>
int main(void)
{
    double fraction, integer;
    double number = 100000.567;
    fraction = modf(number, &integer);
    printf("The whole and fractional parts of %lf are %lf and %lf",number, integer, fraction);
    return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?