convert 32-bit floating point number to decimal number in Altair Embed

Nitin Gupta
Nitin Gupta Altair Community Member
edited June 2021 in Community Q&A
  • How to convert 32-bit floating point number to decimal number and vice versa in Embed? Can it be done through Convert block?

Answers

  • pdarnell
    pdarnell
    Altair Employee
    edited June 2021

    If you mean convert floating point to integer, then yes, convert block set to integer result will do it.

  • Girish Karamadi_21849
    Girish Karamadi_21849 New Altair Community Member
    edited June 2021

    Hi Nitin,

     

    It is possible with the convert block . May I know what is purpose here you are trying to achieve??

    If you could attach your embed diagram(.vsm file) which you are facing the difficulty with it could be easier to resolve the problem .

    imageimage

     

     

  • Nitin Gupta
    Nitin Gupta Altair Community Member
    edited June 2021

    If you mean convert floating point to integer, then yes, convert block set to integer result will do it.

    Hello Peter, I want to convert a 32 bit single precision floating point number to its decimal value and vice versa. For example 0x3F000000 is a 32 bit single precision representation of decimal value of 0.5.