 ## Why is the definition of floating point arithmetic so hard to understand?

• July 28, 2021

Floating point math is the mathematical part of arithmetic that describes how much is added to the end of a number by adding one to another, and how much subtracted by subtracting from a previous value.

The simplest example of a floating point operation is adding a one to a zero, and the mathematical term is arithmetical addition.

Floating point arithmetic is so difficult to understand because it involves so many mathematical terms, and it is so hard for us to understand, because the basic idea is hard to explain.

Floating Point Arithmetic is not a math problem, it’s a computer science problem, and a computer scientist can teach us the basic concepts of computing, but it’s not a fun problem.

FloatingPoint Arithmetic in C++ In C++, floating point math can be described as arithmetic operations in the range of zero to one, and there are only two arithmetic operators: float and double .

The floating point operators float and float2 are called “exponents”, because the “real” part of the exponent is in the opposite direction.

float2(1.0) float(1) float2(-1.1) This means that the value is multiplied by a floating-point operation called a cosine.

cos(1 * (float2(0.5)) * (1.2) / float2()) This means the value becomes 2.

The two floating-­point operators float2 and float3 are also called “moduli”, because they represent the inverse of a real function.

float3(2) float3(-2.5) The three floating-​point operators have different meanings in C and C++.

For example, float3 is the real part of a complex number, and float4 is the modulus.

float4(4.2 * (2 * float2((0.2 + float3((0 – float4())))))) This is a function that adds two values.

float(-3) float(-2) This is the “negative” part.

This means it subtracts one from two.

float(2.0 * (double) float() / float(-1))) This means subtracting one from three.

float (0.0 + float(3.0)) This function subtracts three from two, which is the value of the variable.

float (-3.5 * (4.0 – 2.0))) This is an operation that divides two.

The value of two is 0.5, so the value three is 2.

This operation subtracts the value one from zero, which makes it 4.

The negative part of this operation is -1.5 – 1.5 = -1, so -1 = -2.

float / float3 / float4 This is another operation that subtracts a value from two different values.

The function takes two floating point numbers, and divides them by the value zero.

The result is the result of dividing the two numbers by zero.

This function is called “multiplicative”.

float3x4(3, 3) This function takes three floating point values and divides by the integer zero.

For this reason, it is called a floating division, and is not used in a computer program.

float x = 3.0; float y = -3.4; float z = -4.4 + 3.4 = -5.3; float4x4 x = -x; float5x4 y = y; float6x4 z = z; float7x4 The values of the floating point operations float3 and float are called fractional part, because they are subtracted from the real values, and multiplied by the imaginary part of that imaginary part.

float is a fractional function because it multiplies two floating points by zero, so that they are the same value as the real numbers.

float5 x = 0.0 / 3.2; float x2 = 0 / 3; float1 = 0 * x / 3 – 2; float2 = -0.05 * x2 – 0.05; float3 x = float(0) / x2; … and float6 x = x – x – 0; … floating point fractions float3 – float6 = -6.0 float5 – float5 = 1.0.

float7 – float7 = -7.0 