currently im doing a rice dispenser device that accepts a weight or price value.. my problem was at the price input value.. as the device runs it will ask for a price/kilo of the rice.. assuming i input a value of 25.50, but the actual value stored is 2550. this 2550 is the reference for determining the weight to be dispensed. after 2550 stored, the program ask for another input to be compared in the 2550. i used the codes that mackrackit posted.

'variable PRICE is the reference input
'TOTALAMOUNT is the variable to be compared

PRICED = PRICE/10
AMT = TOTALAMOUNT/10
DECIKILO = (100*AMT/PRICED)//100
WHOLEKILO = (100*AMT/PRICED)/100

LCDOUT $FE,$C0,#WHOLEKILO,".",#DECIKILO," Kg"

using this the program I can determine the weight but it only accepts 4 digit number.. making it to a 5 digit input will go beyond a 65535 limit.