Ob chav Min_value hauv Java yog dab tsi?
Ob chav Min_value hauv Java yog dab tsi?

Video: Ob chav Min_value hauv Java yog dab tsi?

Video: Ob chav Min_value hauv Java yog dab tsi?
Video: British chav in #thesims4 #fyp #trend #funny #sims4cas #british #chav 2024, Kaum ib hlis
Anonim

Ob npaug . MIN_VALUE sawv cev rau tus nqi 21074. Qhov no yog tus nqi subnormal, thiab nws yog tag nrho cov nqi tsawg tshaj plaws uas a ob npaug tuaj yeem sawv cev. Tus nqi subnormal muaj 0 ua ntej lub ntsiab lus binary: 0.

Hauv qhov no, ob npaug Max_value hauv Java yog dab tsi?

Ob npaug . MAX_VALUE yog tus nqi siab tshaj a ob npaug tuaj yeem sawv cev (qhov chaw nyob ib puag ncig 1.7 * 10^308). Qhov no yuav tsum xaus rau qee qhov teeb meem kev suav, yog tias koj sim rho tawm qhov siab tshaj plaws ntawm cov ntaub ntawv hom.

Dab tsi yog ob npaug NaN hauv Java? Java txhais NaN qhov tsis tu ncua ntawm ob qho tib si ntab thiab ob npaug hom li Float. NaN thiab Ob npaug . NaN : “Ib qho tas li tuav tus Tsis-ib-tus lej ( NaN ) tus nqi ntawm hom ob npaug . Nws yog sib npaug rau tus nqi xa rov qab los ntawm Ob npaug.

Ib tug kuj yuav nug, ob txhais li cas hauv Java?

ob npaug : Cov ob npaug hom ntaub ntawv yog a ob npaug -precision 64-ntsis IEEE 754 ntab taw tes. Nws qhov ntau ntawm qhov muaj nuj nqis yog dhau ntawm qhov kev sib tham no, tab sis yog tau teev nyob rau hauv Floating-Point Hom, Hom, thiab Qhov Tseem Ceeb ntawm ntu Java Lus Specification. Rau tus lej lej, hom ntaub ntawv no yog feem ntau yog qhov kev xaiv ua ntej.

Ob tus nqi yog dab tsi?

Cov ob npaug sib txawv tuaj yeem tuav tus lej loj (lossis me me). Qhov siab tshaj plaws thiab yam tsawg kawg nkaus tus nqi yog 17 raws li 307 zeros. Cov ob npaug kuj tseem siv tau los tuav cov ntsiab lus ntab tus nqi . Ib tug floating point tus nqi yog ib yam li 8.7, 12.5, 10.1. Hauv lwm lo lus, nws muaj "ko taw ib yam dab tsi" thaum kawg.

Pom zoo: