add convert function

convert fraction to double
..