Crate precise_calc

Source
Expand description

This is a crate for parsing and evaluating math expressions.

Modules§

ast
Contains all the enums used to represent the AST.
context
Contains the Context struct used to store functions and values currently defined.
eval
Contains the functions used to evaluate an AST.
formatting
Contains functions used to format a BigFloat to a string.
parser
Contains functions used to parse strings into an AST.

Enums§

CalcError
The error type returned when functions in this crate go wrong.

Constants§

BASE_10_PREC
The precision of floating point numbers when converted to base 10. Calculated by log(2^PREC).
PREC
Precision of floating point numbers
RM
The rounding mode of floating point numbers.

Type Aliases§

CalcResult
Commonly used result of either a Number or CalcError.
Number
The type of numbers used in expressions.