You will have to use custom JavaScript and possibly include additional scripts for keystroke and validation.
If the values will be whole numbers and fractions, then your need to split the values into whole number and fractions and then create a decimal value.
You will also need to convert the decimal result back to fractions.