dashu-macros 0.6.0

Procedural macros for the dashu math types: create big-number literals at compile time with ubig!, ibig!, fbig!, dbig!, rbig!, and cbig! (plus their static_ variants for const contexts). Each literal follows the same parsing rules as the corresponding dashu type, producing values of UBig, IBig, FBig, RBig, or CBig in any supported base.
Documentation
1
2
3
4
Create an arbitrary precision float number ([dashu_float::DBig]), with base 10 rounding to the nearest, as a static reference.

The syntax of this macro is the same as the [dbig!][crate::dbig!], but the macro generates a **reference to** a immutable static `DBig` instance. Due to the limitation of const generics, the generated `DBig` instance will take as much as 4x (static) memory as a normal one, to support cross-platform definitions. Besides, the generated float number will have a unlimited precision. Please remember to set a precision before any operations between two static numbers.