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?
"my problem is that when i want to get value like 5.8" Just pre-multiply everything by, say, ten; so that the answer becomes 58 - presto! no floating point required. This is the principle of fixed-point maths. Prescaling by powers of ten is convenient if you need to display the results in a decimal format; powers of two would be quicker (as they can be implemented with a simple shift). "is there any method to convert 5 into float?" I've already answered that one!