Fixed-point arithmetic: Difference between revisions

Content deleted Content added
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 185:
On the other hand, all relational [[database]]s and the [[SQL]] notation support fixed-point decimal arithmetic and storage of numbers. [[PostgreSQL]] has a special <samp>numeric</samp> type for exact storage of numbers with up to 1000 digits.<ref name="PostgreSQL"/>
 
Moreover, in 2008 the [[International Organization for Standardization]] (ISO) published a proposaldraft technical report to extend the C programming language with fixed-point data types, for the benefit of programs running on embedded processors. Two main kinds of data types are proposed, _Fract (fractional part with a minimum 7-bit precision) and _Accum (_Fract with at least 4 bits of integer part).<ref name="JTC1_2008"/> The [[GNU Compiler Collection]] (GCC) supports this proposaldraft.<ref name="gccback"/><ref name="gccuse"/>
 
==Detailed examples==