Dynamic Fraction Library 1.0.0
Reference-counted arbitrary precision rational number library (MIT OR Unlicense)
Loading...
Searching...
No Matches
Data Fields
df_frac_internal Struct Reference

Internal structure for a rational number. More...

#include <dynamic_fraction.h>

Data Fields

di_int numerator
 
di_int denominator
 
size_t ref_count
 

Detailed Description

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.

Field Documentation

◆ denominator

di_int df_frac_internal::denominator

Denominator (always positive)

Definition at line 93 of file dynamic_fraction.h.

◆ numerator

di_int df_frac_internal::numerator

Numerator (can be negative)

Definition at line 92 of file dynamic_fraction.h.

◆ ref_count

size_t df_frac_internal::ref_count

Reference count for memory management

Definition at line 94 of file dynamic_fraction.h.


The documentation for this struct was generated from the following file: