From ebe90a14994a37e5ad77bcc1baf52ca1322bcbe6 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 19 Aug 2021 17:07:59 +0200 Subject: [PATCH] Restrict number of fractional digits to 77. --- docs/types/value-types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/value-types.rst b/docs/types/value-types.rst index 023f90a5b..f00626f63 100644 --- a/docs/types/value-types.rst +++ b/docs/types/value-types.rst @@ -160,7 +160,7 @@ Fixed Point Numbers Fixed point numbers are not fully supported by Solidity yet. ``fixed`` / ``ufixed``: Signed and unsigned fixed point number of various sizes. Keywords ``ufixedMxN`` and ``fixedMxN``, where ``M`` represents the total number of bits used by -the type and ``N`` represents how many fractional decimal digits are available. ``M`` must be divisible by 8 and goes from 8 to 256 bits. ``N`` must be between 0 and 80, inclusive. +the type and ``N`` represents how many fractional decimal digits are available. ``M`` must be divisible by 8 and goes from 8 to 256 bits. ``N`` must be between 0 and 77, inclusive. ``ufixed`` and ``fixed`` are aliases for ``ufixed128x18`` and ``fixed128x18``, respectively. Fixed point types are used to represent fractional numbers with a fixed precision. The number ``1.5`` is stored in a ``fixed16x2`` (16 bit number with