|
Dynamic Fraction Library 1.0.0
Reference-counted arbitrary precision rational number library (MIT OR Unlicense)
|
Internal structure for a rational number. More...
#include <dynamic_fraction.h>
Data Fields | |
| di_int | numerator |
| di_int | denominator |
| size_t | ref_count |
Internal structure for a rational number.
Represents a fraction as numerator/denominator with reference counting. The fraction is always kept in reduced form (lowest terms).
Definition at line 91 of file dynamic_fraction.h.
| di_int df_frac_internal::denominator |
Denominator (always positive)
Definition at line 93 of file dynamic_fraction.h.
| di_int df_frac_internal::numerator |
Numerator (can be negative)
Definition at line 92 of file dynamic_fraction.h.
| size_t df_frac_internal::ref_count |
Reference count for memory management
Definition at line 94 of file dynamic_fraction.h.