Add a scale function to fraction

Signed-off-by: suosuopuo <suosuopuo@gmail.com>