Content deleted Content added
Disabled redirect to Fixed-point arithmetic because they are not synonymous. Tags: Blanking Reverted Visual edit |
Transformed the erroneous redirect into a stub article bc I currently don't have the time to write it fully, but it is better than leaving the misleading redirect in place. Tags: Removed redirect Visual edit: Switched |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1:
'''Fixed-precision arithmetic''', also referred to as '''finite-precision arithmetic''', is arithmetic on numbers that are represented in a fixed number of digits.<ref>{{Cite book |last=Karna |first=Satish K. |url=https://www.google.nl/books/edition/Digital_Electronics_GATE_PSUS_AND_ES_Exa/pfFeDAAAQBAJ |title=Digital Electronics GATE, PSUS AND ES Examination |publisher=Vikas Publishing House |isbn=978-93-259-9033-3 |page=7 |language=en}}</ref> Examples are [[Integer (computer science)|integers]], [[Fixed-point number|fixed-point numbers]], and [[floating-point numbers]], but not [[Rational data type|rational numbers]] and [[Arbitrary-precision arithmetic|arbitrary-precision numbers]]. The number of digits being fixed means that the maximal number of [[significant digits]] is also fixed, which complicates the significance arithmetic that has to be used with them.<ref>{{Cite journal |last=Sofroniou |first=Mark |last2=Spaletta |first2=Giulia |date=2005-07-01 |title=Precise numerical computation |url=https://www.sciencedirect.com/science/article/pii/S1567832604000785 |journal=The Journal of Logic and Algebraic Programming |series=Practical development of exact real number computation |volume=64 |issue=1 |pages=113–134 |doi=10.1016/j.jlap.2004.07.007 |issn=1567-8326}}</ref>
The values a fixed-precision number format can represent is determined by the [[radix]] of its digits, the number of digits (its precision), and the factor the integer value formed by the digits in the radix is multiplied by (i.e. its scale). Integer number formats in this definition have scale 1, fixed-point a fixed integer power of the radix, and with floating-point a variable integer power. <!-- Needs to be expanded on the usage of fixed-precision numbers in general and especially in the context of databases. -->
== References ==
<references />
== Sources ==
* {{cite book |last=Matula |first=David W. |url=https://dl.acm.org/doi/abs/10.5555/1074100.1074710 |title=Encyclopedia of Computer Science |date=2003-01-01 |publisher=John Wiley and Sons Ltd. |isbn=978-0-470-86412-8 |publication-place=GBR |page=1420 |chapter=Precision |access-date=2025-06-17}}
* {{cite web |date=2024-11-19 |title=Fixed-precision numbers: DECIMAL and MONEY (Informix Servers) |url=https://www.ibm.com/docs/en/informix-servers/15.0.0?topic=types-fixed-precision-numbers-decimal-money |archive-url=https://web.archive.org/web/20250617133307/https://www.ibm.com/docs/en/informix-servers/15.0.0?topic=types-fixed-precision-numbers-decimal-money |archive-date=2025-06-17 |access-date=2025-06-17 |website=IBM}}
* {{cite web |date=2025-03-27 |title=Decimal and numeric (Transact-SQL) |url=https://learn.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver17 |archive-url=https://web.archive.org/web/20250617134627/https://learn.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver17 |archive-date=2025-06-17 |access-date=2025-06-17 |website=Microsoft Learn}}
[[Category:Computer arithmetic]]
{{Compu-stub}}
|