Binary scaling: Difference between revisions

Content deleted Content added
tagging as uncategorized using AWB
Line 1:
{{uncat|September 2006}}{{wikify-date|September 2006}}
== '''Binary scaling''' ==
 
Binary scaling is a technique used mainly by embedded [[C_programming_languageC programming language|C]], [[Digital_signal_processingDigital signal processing|DSP]] and [[assembly_languageassembly language|assembler]] programmers to
perform a psuedo floating point using integer arithmetic.
It is faster than floating point and is more accurate, but care must be taken not allow
Line 73 ⟶ 74:
 
To convert back to floating point, we need to divide this by (2^(wordsize-7-1)) == 21.2800000099
 
 
 
Various scalings maybe used. B0 for instance can be used to represent
Line 95 ⟶ 94:
 
Binary scaling is currently used in the linux [[microwindows]] release to linearise [[touchscreen]]s.
It is also used in the [[Discrete_cosine_transformDiscrete cosine transform|DCT]] used to compress [[JPEG]] images in utilities such as the [[GIMP]].
 
Although floating point has taken over to a large degree, where speed and extra accuracy are required, binary scaling is faster and more accurate.