Change some interface of fraction operations

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