c语言两个浮点数相加
As we know that modules also known as the remainder of the two numbers can be found using the modulus (%) operator which is an arithmetic operator in C/C++. The modules operator works with integer values i.e. modulus operator is used to find the remainder of two integer numbers. If the numbers are float or double the the modulus operators doesn't work.
我们知道,也可以使用模数 ( % )运算符(也就是C / C ++中的算术运算符)找到也称为两个数的余数的模块 。 模块运算符使用整数值,即模数运算符用于查找两个整数的余数。 如果数字为float或double ,则模运算符不起作用。
Consider the below example,
考虑下面的示例,
#include <stdio.h>
int main()
{
float x = 10.23f;