The Coding and Storage of the Real Type Data in C Programming Language

Zhou Heng-zhong · Wanxi Xueyuan xuebao · 2007

The C programming language has rich data types,it is of great importance to identify data types in program designing,so the intensive research of all types of data is necessary.In Turbo C 2.0,the real-type data includes float,double and long double types wity coding lengty of 4B,8B and 10B respectively,from left to right,the first bit is the symbol bit of data and the next is the partial index code with the length of 8b,11b and 15b respectively,the remaining part is the mantissa code.The code is stored in reverse order in the unit of byte.The conversion between value and coding can be easily achieved through transforming formula,the relevant attributes of real-type data is summed up on the base of experiments.

Read the paper · More papers on PaperTik