Floating point

Mary

Member
Join Date
Oct 2004
Posts
17
hello,
I have a little doubt, I don't understand very well the meaning of floating point...
hope that you can help me
thank you
 
Think of integers as a whole string of numbers but with no decimal point. Let's say, for argument, you can have 10 digits.

Now think of having only 9 digits but you can have a decimal point at any position (floating). The other digit says where the decimal point is placed. It's much like exponential notation but oriented to computer storage.

Note that this is just for visiualizing the concept. The actual method of storing floating point numbers is much more involved.
 
you can also check out meaning of fixed point:
As the name suggests, decimal point is in fixed position.
This has limitation that fixed number of bits is used
to present values before and after decimal point.
For example let's take a look at equivalent in decimal world
and try to present values using 4 digits before and three
after decimal point.

This means format like 1234.567 and resolution of 0.001
while biggest number would be 9999.999
With floating point placed between any two digits you could
present numbers in range 0.000001 to 999999.9 which makes
much wider range.

Fixed point numbers are often simpler to process as they
work like integers (you just imagine decimal point to be
somewhere in the middle of the bit group you have available)
while floating point can present wider range of numbers.

Until match coprocessor became pretty much standard in CPUs,
anything that required fast processing and precission was
done using fixed point (check out older games and assembly
demos for example).

Some systems still don't have FPU built in (this applies to CPUs and
MCUs) so fixed point is usually way to go if speed or
simplicity is important.
 

Similar Topics

I need to check an axis actual travel position, and to compare it to the master travel position. To do this I have to multiply the axis travel...
Replies
6
Views
2,557
We have AOIs for projects, which handle material dosing (by hand or by pipes and pumps), obviously they have comparison between setpoint and...
Replies
50
Views
14,190
Hi eveyone. I need transfer signal from system 1 to DCS via modbus. System 1 only can send 32 bit floating point. DCS receive 16 bit integer. How...
Replies
20
Views
10,547
Hi, In my ladder logic, I've got a data register D60 whose value is -0.001 (when using monitor mode to see values). D406 is 0.250. But then...
Replies
5
Views
1,300
Hi, can anybody tell that how can we move floating point data from one Regiter to another register in Fatek PLC.?
Replies
0
Views
1,544
Back
Top Bottom