Variablen mit Nachkommastellen

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
vleeuwen
Beiträge: 1564
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: Variablen mit Nachkommastellen

Beitrag von vleeuwen » 21 Mär 2014, 18:20

I share the thoughts of Thomas.
The precision of arithmetic operations is 48 bits with a 32 bit mantissa. This corresponds to a precision of slightly more than 9 decimal digits is for the main target group good.
Who has real problems with it and why?

There exist more computing platforms in the world than Linux.

jona2004
Beiträge: 149
Registriert: 10 Jun 2011, 22:30

Re: Variablen mit Nachkommastellen

Beitrag von jona2004 » 21 Mär 2014, 18:57

Hello Thomas, Vleeuwen,
There is not real issue in my mind as I also said in my summary.
The RoboPro help suggest that also +, - etc. commands can work w/ floating point. This is not the case. It means you can not simply translate the logic of a RoboPro program using the +/- command from integer to floatingpoint. Its is just a matter of clarification.

The other is the claim from Quadro that there are issues w/ flaotingpoint conversions etc. As I said in my summary there is no evidence for this claim.

Hope this clears up the confusion Joachim


PS: Linux or not Linux this is not the question. Today's hardware floating point units support the IEEE 754 format and nothing else (except some exotic machines), independept of hte operating system

vleeuwen
Beiträge: 1564
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: Variablen mit Nachkommastellen

Beitrag von vleeuwen » 21 Mär 2014, 19:39

Can you give a simple example.

I am using a "int to float" converter (ch 12) and after that I am doing some float calculations.
This works.

jona2004
Beiträge: 149
Registriert: 10 Jun 2011, 22:30

Re: Variablen mit Nachkommastellen

Beitrag von jona2004 » 21 Mär 2014, 21:54

Hello Vleeuwen,
All the orange datapathes all work as said in my inital post, confirming UMUeller´s statement.
What does not work are the "blue" commands execpt the one with '='. The Help is not clear and when you add a datapath input to the blue command symbol then it offers the option to select 48-Float also for '+' or '-'.
But when you then run the program it complains that the instructions can not work with float.
regards Joachim

vleeuwen
Beiträge: 1564
Registriert: 31 Okt 2010, 22:23
Wohnort: Enschede (NL)
Kontaktdaten:

Re: Variablen mit Nachkommastellen

Beitrag von vleeuwen » 21 Mär 2014, 23:00

I can reproduce what your describe.
-> "No attached input can handle message '-'.
-> "No attached input can handle message '+'.
It looks like that the RoboPro-designer did not implemented Floating point handlers for these commands.

In fact you only need the "=" command to store FP-results in a variable, this in combination with the Operators.
This work around will solve the problems.

Step counting is normally only done with integers.

Antworten