Module rug::float [] [src]

Multi-precision floating-point numbers with correct rounding.

This module provides support for floating-point numbers of type Float.

Structs

OrdFloat

A float that supports ordering and hashing.

ParseFloatError

An error which can be returned when parsing a Float.

SmallFloat

A small float that does not require any memory allocation.

ValidFloat

A validated string that can always be converted to a Float.

Enums

Constant

The available floating-point constants.

Round

The rounding methods for floating-point values.

Special

Special floating-point values.

Functions

exp_max

Returns the maximum value for the exponent.

exp_min

Returns the minimum value for the exponent.

prec_max

Returns the maximum value for the precision.

prec_min

Returns the minimum value for the precision.