Micron to Decimal Conversion


I am using an 18F4431(and a 18F4550) with encoder inputs.
The development board is a LAB-XUSB.
The scale being used is in microns.
1 count = .0003937 inches.
I do not need the resolution the
encoder and scale provide but I need to
use this encoder and scale.

I will need to convert microns to
decimal for data logging.
I will need to perform a calculation
To see if the value falls outside of a
plus(+) or minus(-) point.
Example
.000 is the datum.
The deviation allowed is
+ or - .010. Therefore, if
the reading is .013 then the
unit has failed and I would
report this to the user.

I have tried using integers with no
success. I have not attempted
floating-point math. I do not
know how to incorporate the
routine into Pic Basis Pro at present.
I do not know which routines
of the samples provided to incorporate.
I am still studying a method to implement.

I need to be pointed in the right direction.

Any help will be appreciated.

Thank You.

Richard