सभी किताबें

पेशेवर

1 Markets I: The Ecosystem and Exchange-Traded Marketsबाज़ार ऑनलाइन 2 Markets II: Rates, FX and Creditबाज़ार ऑनलाइन 3 Markets III: Commodities, Energy and Cryptoबाज़ार ऑनलाइन 4 Quantitative Methodsविधियाँ ऑनलाइन 5 Derivatives and Volatilityडेरिवेटिव्स ऑनलाइन 6 Rates, Credit, XVA and Riskब्याज दरें, क्रेडिट और जोखिम ऑनलाइन 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosअनुसंधान ऑनलाइन 8 Strategies I: Equities and Futuresरणनीतियाँ ऑनलाइन 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksरणनीतियाँ ऑनलाइन 10 Microstructure and Executionनिष्पादन ऑनलाइन 11 Market Making and High-Frequency Tradingमार्केट मेकिंग ऑनलाइन 12 Machine Learning for Marketsमशीन लर्निंग ऑनलाइन 13 Low-Latency Softwareतकनीक ऑनलाइन 14 Networks, Hardware and Trading Infrastructureतकनीक ऑनलाइन 15 Research, Data and Risk Platformsतकनीक ऑनलाइन 16 The Desk and the Firmफ़र्म ऑनलाइन 17 The Industry: Firms, Roles and Careersकरियर ऑनलाइन 18 Interviews I: Maths, Probability and Speedकरियर ऑनलाइन 19 Interviews II: Markets, Trading Games and the Final Roundकरियर ऑनलाइन 20 Interviews III: Codeकरियर ऑनलाइन
ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Computer Science · शब्दावली

Floating-point number क्या है?

अन्य नाम: sign (floating-point) · exponent (floating-point) · significand

Definition 4.2 High School Computer Science · अध्याय 4 — Floating-Point Numbers

A floating-point number is a number written ±m×2e\pm m \times 2^{e}, where the sign is ++ or −-, the exponent ee is a whole number, and the significand mm is a binary fraction with 1≤m<21 \le m < 2 and a fixed number of digits. Each of the three parts is stored in a fixed number of bits.

The 64 bits of the stored 0.1: sign 0; exponent field 1019, that is e = 1019 - 1023 = -4; fraction bits 1001\,1001 … 1010. The value is 1.1001\,1001…1010 × 2-4 in base 2. The last digits … 1010 instead of … 1001\,1001 show that the digits were rounded up.
The 6464 bits of the stored 0.1: sign 00; exponent field 10191019, that is e=1019−1023=−4e = 1019 - 1023 = -4; fraction bits 1001 1001…10101001\,1001 \dots 1010. The value is 1.1001 1001…1010×2−41.1001\,1001\dots1010 \times 2^{-4} in base 22. The last digits …1010\dots 1010 instead of …1001 1001\dots 1001\,1001 show that the digits were rounded up.
The 128 values of the toy format on a number line. There are as many values between 16 and 31 as between 1/8 and 1/4: floating-point numbers keep the same number of significant digits, not the same number of digits after the point.
The 128128 values of the toy format on a number line. There are as many values between 1616 and 3131 as between 18\tfrac18 and 14\tfrac14: floating-point numbers keep the same number of significant digits, not the same number of digits after the point.
अध्याय में पढ़ें →