## Usage To create a fraction, use the `PhpOffice\Math\Element\Fraction` class. ### Methods #### getDenominator The method has no parameter. #### getNumerator The method has no parameter. #### setDenominator The method has one parameter : * `PhpOffice\Math\Element\AbstractElement` **$element** #### setNumerator The method has one parameter : * `PhpOffice\Math\Element\AbstractElement` **$element** ## Example ### Math a 3 ### XML ``` xml a 3 ``` ### PHP ``` php setDenominator(new Element\Identifier('a')); $fraction->setNumerator(new Element\Numeric(3)); $math->add($fraction); ```