Announcement

Collapse
No announcement yet.

Int to float?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Int to float?

    Hey there,

    is there any function which convert int to float? And also for the reserve case?

    Many greetings,

    David

  • #2
    Hello David,

    Welcome to the forum.

    The 2 commands below are for a 16 bit conversion.

    Code:
    int :=  flt_FTOI(float);  // Float to integer
    flt_ITOF(res, int);       // Integer to Float
    I hope this helps

    Best regards

    Paul
    Last edited by pauleilio; 5 August 2022, 04:20 AM.

    Comment


    • #3
      Thanks a lot!

      Comment

      Working...
      X