Learn R Programming

schoolmath (version 0.5.1)

cancel.fraction: cancel a fraction to the smallest numbers

Description

cancel a fraction to the smallest numbers

Usage

cancel.fraction(numerator, denominator)

Value

An integer vector of length 2 containing the reduced numerator and denominator.

Arguments

numerator

the fraction's numerator

denominator

the fraction's denominator #'

Examples

Run this code
cancel.fraction(40,15)
cancel.fraction(42, 56)

Run the code above in your browser using DataLab