Crate dashu_macros

Source
Expand description

A macro library for creating big numbers from literals.

See the documentation of each macro for the usage.

§Dependency requirement

Due the fact that the macros expand to plain tokens, and proc macro crates can’t re-export types, it’s required to add explicit dependency to the underlying crates when using the macros. Specifically, you need to add the following crates as dependencies to your Cargo.toml:

If you are using these macros from the dashu crate, then it’s not necessary to explicitly adding these dependencies, because the related types are re-exported by the dashu crate.

Macros§

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_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)