Convert a decimal to a fraction Write a program that converts a decimal to a mixed, simplified fraction.

Sample input:

5.2


Sample output:

5 + (1/5)


The code with the shortest length in bytes wins.
Ruby, 43
y=gets.to_r;puts&quot;#{y.to_i} + (#{y-y.to_i})&quot;

Pretty straightforward.