Hauv computer science, cov lej tsis zoo yog cov lej ntawm cov lej denormalized (qee zaum hu ua denormals) uas sau qhov sib txawv hauv qab ib ncig ntawm xoom hauv ntab-point arithmetic. … Hloov pauv, qhov denormalized ntab taw tes tus nqi muaj ib qho tseem ceeb nrog tus lej ua ntej ntawm xoom.
Dab tsi yog qhov normalized thiab denormalized floating point tooj?
Java siv IEEE 754 tus qauv rau kev sawv cev ntab ntab. Hauv qhov kev sawv cev no, floats yog encoded siv 1 kos npe me ntsis, 8 exponent khoom, thiab 23 mantissa khoom. … Vim li ntawd, cov ntab muaj 24 qhov tseem ceeb ntawm qhov tseeb, thiab ob npaug muaj 53 qhov tseem ceeb ntawm qhov tseeb. Cov lej no hu ua tus lej normalized.
Koj qhia li cas yog tus lej normalized lossis denormalized?
Piv txwv li, yog tias koj tab tom sim sawv cev 12.34, ces koj yuav encode nws li 123400 -04. Qhov no yog hu ua "normalized". Hauv qhov no txij li ob tus lej qis dua yog xoom, koj tuaj yeem qhia tus nqi raws li 012340 -03 lossis 001234 -02 sib npaug. Qhov ntawd yuav hu ua "denormalized".
Tus lej ntab ntab ntws li qub yog dab tsi?
Tus lej ntab yog qhov qub thaum peb yuam cov lej ntawm nws cov mantissa kom yog 1 thiab tso cai rau nws cov feem ntau yog qhov peb nyiam. Piv txwv li, yog tias peb yuav tsum coj tus lej 13.25, uas yog 1101.01 hauv binary, 1101 yuav yog tus lej thiab01 yuav yog ib feem.
Dab tsi yog tus lej denormalized siv los sawv cev?
Denormalized tooj
Txhim txo qhov poob ntawm qhov tseeb thaum muaj kev cuam tshuam tshwm sim, IEEE 754 suav nrog muaj peev xwm sawv cev cov feem me dua li qhov ua tau hauv cov sawv cev zoo li qub, los ntawm kev ua tus lej implicit ua tus lej 0. Cov lej no hu ua denormal.