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

User: "Nitin Gupta"
Altair Community Member
Updated by Nitin Gupta
  • How to convert 32-bit floating point number to decimal number and vice versa in Embed? Can it be done through Convert block?

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "pdarnell"
    Altair Employee
    Updated by pdarnell

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

    User: "Girish Karamadi_21849"
    New Altair Community Member
    Updated by Girish Karamadi_21849

    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

     

     

    User: "Nitin Gupta"
    Altair Community Member
    OP
    Updated by Nitin Gupta

    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.