You can't use decimals because you use parseInt, which by definition treats your numbers as Integers.
Use parseFloat to get a Float type instead. (That is a number where the decimal sign floats around and can be in any location).
One thing to note is that if JavaScript encounters a string beginning with 0, it might convert this string into an octal number (base 8) instead of a decimal number (base 10). To force base 10, do parseFloat(theString, 10).
You can also simplify the code slightly by removing the quotes around numbers in calls to buttonclick(). JS will automatically treat numbers as strings if they are added to other strings.
You can also replace