math

作者: 风冰武 | 来源:发表于2019-01-16 12:07 被阅读0次
//float取整(截取整数部分)
extern float truncf(float);                495行
eg:                输出结果
truncf(3.14)         //3
truncf(3.54)         //3
truncf(-3.14)        //-3
truncf(-3.54)        //-3

//double取整(截取整数部分)            496行
extern double trunc(double);



原文: https://www.cnblogs.com/zhao-jie-li/p/5559600.html

相关文章

网友评论

    本文标题:math

    本文链接:https://www.haomeiwen.com/subject/mqapdqtx.html