Skip to main content

Crate dashu

Crate dashu 

Source
Expand description

The meta crate that re-exports all dashu numeric types.

Modules§

base
Defintions of common traits
complex
Arbitrary precision complex number
float
Arbitrary precision floating point number
integer
Arbitrary precision integer number
rational
Arbitrary precision rational number

Macros§

cbig
Create an arbitrary precision complex number (dashu_cmplx::CBig) with base 2 rounding towards zero.
dbig
Create an arbitrary precision float number (dashu_float::DBig) with base 10 rounding to the nearest.
fbig
Create an arbitrary precision float number (dashu_float::FBig) with base 2 rounding towards zero.
ibig
Create an arbitrary precision signed integer (dashu_int::IBig)
rbig
Create an arbitrary precision rational number (dashu_ratio::RBig or dashu_ratio::Relaxed).
static_cbig
Create a static reference to an arbitrary precision complex number (dashu_cmplx::CBig).
static_dbig
Create an arbitrary precision float number (dashu_float::DBig), with base 10 rounding to the nearest, as a static reference.
static_fbig
Create an arbitrary precision float number (dashu_float::FBig), with base 2 rounding towards zero, as a static reference.
static_ibig
Create an arbitrary precision signed integer (dashu_int::IBig) as a static reference.
static_rbig
Create an arbitrary precision rational number (dashu_ratio::RBig or dashu_ratio::Relaxed) as a static reference.
static_ubig
Create an arbitrary precision unsigned integer (dashu_int::UBig) as a static reference.
ubig
Create an arbitrary precision unsigned integer (dashu_int::UBig)

Type Aliases§

Complex
A verbose alias for CBig (base 2, rounding towards zero)
Decimal
A verbose alias for DBig (base 10, rounding to the nearest)
FastComplex
A verbose alias for CachedCBig (base 2, rounding towards zero) — the cached, faster variant of Complex for transcendental-heavy code. !Send + !Sync.
FastDecimal
A verbose alias for the base-10 CachedFBig (rounding to nearest) — the cached, faster variant of Decimal. !Send + !Sync.
FastReal
A verbose alias for CachedFBig (base 2, rounding towards zero) — the cached, faster variant of Real for transcendental-heavy code. !Send + !Sync.
Integer
A verbose alias for IBig
Natural
A verbose alias for UBig
Rational
A verbose alias for RBig
Real
A verbose alias for FBig (base 2, rounding towards zero)