Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
uni20::decimal_literal Class Reference

A precisionless decimal spelling produced by the _mp literal operator. More...

#include <exact_rational.hpp>

Public Member Functions

mpreal at (Precision precision) const
 Materialize the literal with one rounding to the requested precision.
 
constexpr bool is_exact () const noexcept
 
constexpr std::string_view spelling () const noexcept
 

Friends

constexpr decimal_literal literals::operator""_mp (char const *text)
 

Detailed Description

A precisionless decimal spelling produced by the _mp literal operator.

Literal text has static lifetime. Arithmetic materializes an owning exact rational, never an expression referring to other operands.

Member Function Documentation

◆ at()

mpreal uni20::decimal_literal::at ( Precision  precision) const
inline

Materialize the literal with one rounding to the requested precision.

◆ is_exact()

constexpr bool uni20::decimal_literal::is_exact ( ) const
inlineconstexprnoexcept

◆ spelling()

constexpr std::string_view uni20::decimal_literal::spelling ( ) const
inlineconstexprnoexcept

Friends And Related Symbol Documentation

◆ literals::operator""_mp

constexpr decimal_literal literals::operator""_mp ( char const *  text)
friend

The documentation for this class was generated from the following files: