Floating point calculations

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Submitted by Guest on Thu, 03/26/2015 - 19:24 

 

I would like to create a diagram to perform some floating point calculations. How can I set the microcontroller to do that?

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2016

    Submitted by imatalon on Thu, 03/26/2015 - 19:36.

    The type of variables is automatically defined by the block they are connected to. If you connect them to a float block (i.e. standard block) they will take on a float type. If you connect them to a scaled int block (i.e. fixed point gain) they will take on the scaled int type and scaling of that block's output.