Yeh page kuch bhi assume nahi karta. Parent note Floating Point Gotchas ko touch karne se pehle, hum har woh symbol build karte hain jo woh use karta hai, ek ek brick karke, har brick pichli wali ke upar.
Ek calculator screen ki fixed width hoti hai. Agar woh 4 digits dikha sakti hai, toh 12340000 fit hota hai (1.234×107 ke roop mein) lekin 1 add karne se kuch nahi badlta — woh 1 right edge se gir jaata hai. Ek real computer bhi yahi idea hai, bas zyaada digits ke saath. Neeche sab kuch "digits edge se gir jaati hain" ka precise version hai.
Ek bit ek single 0 ya 1 hota hai. Computers numbers ko base 2 (binary) mein likhte hain, bilkul waise hi jaise hum base 10 mein likhte hain — lekin place-values 10 ki nahi, 2 ki powers hoti hain.
Base 10 mein, 3.14=3+101+1004.
Base 2 mein, (1.011)2=1+0⋅21+1⋅41+1⋅81=1.375.
Aise kyun split karte hain? Kyunki yeh binary mein scientific notation hai. "Digits" aur "scale" ko alag store karna memory ke ek chhote hisse ko 10−300 aur 10+300 dono represent karne deta hai. Topic ke liye yeh zaroori hai kyunki exponent gap ka size decide karta hai — aur gap size hi poori kahani hai.
Kyunki mantissa mein sirf 52 bits hain, number 1.0 ke paas sabse chhoti change jo tum kar sakte ho woh last bit ko flip karna hai, jo 2−52 worth hai. 1.0 ke baad gap ka size yahi hai.
Yeh picture ek crucial fact dikhati hai: gap number ki magnitude ke saath badhti hai.1 ke paas gap ≈2.2×10−16 hai; 1016 ke paas gap lagbhag 2 hai; 1016 ke paas number 1ek gap se bhi chhota hai aur add karne par simply gaayab ho jaata hai. Yeh akela visual parent ka "1+1016=1016" absorption explain karta hai.
Dono kyun?x=2 ke liye 1 se galat hona disastrous hai (50%) lekin x=109 ke liye negligible (billionth part). Computer ki guarantee relative ruler mein batayi jaati hai kyunki woh saari magnitudes mein constant rehti hai.
Symbols kaise padhein:
fl(x) ::: "x ka float" — x ke sabse kareeb representable double.
Ise top-down padhte hain: raw bits format dete hain, format gap deta hai, gap εmach deta hai, aur relative/absolute distinction ke saath milke rounding model milta hai — woh single equation jisse Catastrophic cancellation, Round-off error propagation, Kahan compensated summation aur Quadratic formula numerical issues sab follow karte hain. Poori chain Numerical stability and conditioning mein land hoti hai.