请输入您要查询的百科知识:

 

词条 Radix point
释义

  1. Examples

  2. See also

  3. References

In mathematics and computing, a radix point (or radix character) is the symbol used in numerical representations to separate the integer part of a number (to the left of the radix point) from its fractional part (to the right of the radix point).[1] "Radix point" applies to all number bases. In base 10 notation, the radix point is more commonly called the decimal point, where the prefix deci- implies base 10. Similarly, the term "binary point" is used for base 2.

In English-speaking countries, the radix point is usually a small dot (.) placed either on the baseline or halfway between the baseline and the top of the numerals.[2] In many other countries, the radix point is a comma (,) placed on the baseline. It is important to know which notation is being used when working in different software programs. The respective ISO standard defines both the comma and the small dot as decimal markers, but does not explicitly define universal radix marks for bases other than 10.

Examples

  • In base 10 (decimal): 13.625

In this example, 13 is the integer to the left of the radix point, and 625 (i.e. 625/1000) is the fractional part to the right.

  • In base 2 (binary): 1101.101

The binary number 1101.101 has the following digits:

Power of 2 3 2 1 0 −1 −2 −3
Binary digit 1 1 0 1 . 1 0 1

Hence, its decimal value can be calculated as:

It is now seen that 1101, which is to the left of the radix point, is the binary representation of the decimal number 13. To the right of the radix point is 101, which is the binary representation of the decimal fraction 625/1000 (or 5/8).

See also

  • Floating point
  • Fixed point
  • Positional notation

References

1. ^{{citation|title=Essential Mathematics for Games and Interactive Applications: A Programmer's Guide|first1=James M.|last1=Van Verth|first2=Lars M.|last2=Bishop|edition=2nd|publisher=CRC Press|year=2008|isbn=9780123742971|page=7|url=https://books.google.com/books?id=zkEY9RIm4WkC&pg=PA7}}.
2. ^ {{ cite web | url = https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html | title = International Language Environments Guide | access-date = 2018-12-19 | website = Oracle Corporation Docs | quote = Great Britain and the United States are two of the few places in the world that use a period to indicate the decimal place. Many other countries use a comma instead. The decimal separator is also called the radix character. Likewise, while the U.K. and U.S. use a comma to separate groups of thousands, many other countries use a period instead, and some countries separate thousands groups with a thin space. | format = html | archive-url = https://web.archive.org/web/20120115042427/https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html | archive-date = 2012-01-15 | df = dmy-all }}
小数点

2 : Numeral systems|Computer arithmetic

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 11:24:52