jtokash
Member
Hello!
I am simply trying to convert a distance in inches to feet showing the number of feet with the fractional part just displayed as .xxx. I do not need to convert the .xxx to inches as I will be using the number to calculate square feet (I am also taking a width measurement in inches that I need to do the same for). I am using an automationdirect DL-06 microplc. I have tried using double word and floating point division with BCD numbers, floating point, etc... but whatever I try all I get in the V memory location I output the result to is the whole number part of the calculation, not the fractional part at all. I need to be able to get that fractional part to get an accurate square footage of the material I am measuring. Any ideas?
Thanks in advance!
I am simply trying to convert a distance in inches to feet showing the number of feet with the fractional part just displayed as .xxx. I do not need to convert the .xxx to inches as I will be using the number to calculate square feet (I am also taking a width measurement in inches that I need to do the same for). I am using an automationdirect DL-06 microplc. I have tried using double word and floating point division with BCD numbers, floating point, etc... but whatever I try all I get in the V memory location I output the result to is the whole number part of the calculation, not the fractional part at all. I need to be able to get that fractional part to get an accurate square footage of the material I am measuring. Any ideas?
Thanks in advance!