Multiple-precision floating-point numbers
The rugflo crate provides multiple-precision floating-point numbers
using the GNU MPFR Library, a library for
multiple-precision floating-point computations. It is one of a group
of four crates:
rugintfor arbitrary-precision integers,rugratfor arbitrary-precision rational numbers,rugflofor multiple-precision floating-point numbers, andrugcomfor multiple-precision complex numbers.
Documentation
Documentation for this crate is available.
It can also be helpful to refer to the documentation at the MPFR page.
The crate provides the
Float
type, which holds a multiple-precision floating-point number.
Examples
extern crate rugint;
extern crate rugflo;
use Assign;
use Float;
Usage
To use this crate, add rugflo as a dependency in Cargo.toml:
[]
= "0.1"
This crate depends on the low-level bindings in the crate
gmp-mpfr-sys. This
should be transparent on GNU/Linux and macOS, but may need some work
on Windows. See the gmp-mpfr-sys
README
for some details.
License
This crate is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
See LICENSE-LGPL and LICENSE-GPL for details.