ex_xirr v1.0.0 Fraction
Module to handle fractions
Link to this section Summary
Functions
Function to convert a Fraction struct to negative
Function to convert Fraction struct to a floating point number
Link to this section Types
Rational numbers (num/den)
Link to this section Functions
Function to convert a Fraction struct to negative
Examples
iex> fraction = %Fraction{num: 2, den: 4}
iex> Fraction.negative(fraction)
%Fraction{num: -2, den: 4}