How to convert percent to fraction and decimal?