Decimal

Input: Decimal(s)
Decimal ⁣(s)\operatorname{Decimal}\!\left(s\right)

Constructs the rational number represented by the decimal floating-point literal string ss.

Input: Decimal("3.141592653589793238462643")
3.1415926535897932384626433.141592653589793238462643

A precise approximation of π\pi.

Input: Equal(Decimal("-6.75e12345"), -Div(675,100) * Pow(10, 12345))
6.751012345=6751001012345-6.75 \cdot 10^{12345} = -\frac{675}{100} \cdot {10}^{12345}

A large negative number.

Last updated: 2020-03-06 00:22:16