This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

keil software

how can i convert int value into float in 8051 assebly?i want to find the average of 12 int valuse which may be float so i want the result in float?

Parents
  • "how can i convert int value into float in 8051 assebly"

    You would have to either write your own complete floating-point library, or buy one.

    If you really must use floating-point, Why not just use 'C' which has floating-point built-in? (though not in the free eval version)

    One the other hand, as Hans-Bernhard said, why not use fixed-point instead?
    Work smarter, not harder!

Reply
  • "how can i convert int value into float in 8051 assebly"

    You would have to either write your own complete floating-point library, or buy one.

    If you really must use floating-point, Why not just use 'C' which has floating-point built-in? (though not in the free eval version)

    One the other hand, as Hans-Bernhard said, why not use fixed-point instead?
    Work smarter, not harder!

Children