广告合作
  • 今日头条

    今日头条

  • 百度一下

    百度一下,你就知道

  • 新浪网

    新浪网 - 提供新闻线索,重大新闻爆料

  • 搜狐

    搜狐

  • 豆瓣

    豆瓣

  • 百度贴吧

    百度贴吧——全球领先的中文社区

  • 首页 尚未审核订阅工具 订阅

    0是一位数吗?0为什么不是一位数?最小的一位数

    来源:网络收集  点击:  时间:2024-06-04
    【导读】:
    位数是指一个整数所占有数位的个数。把占有一个数位的数叫一位数,占有两个数位的数叫两位数。看百度上所有的说法都认为1是最小的一位数。但我在某个英文网站上看到了一个不同的说法,该网站上明确指出0 is one digits。希望有关于0是以为数吗?0是几位数?类似的问题我也很希望能得到完备的解释。方法/步骤1/3分步阅读

    首先,介绍了十进制数的概念。

    sign ::= ’+’ | ’-’

    digit ::= ’0’ | ’1’ | ’2’ | ’3’ | ’4’ | ’5’ | ’6’ | ’7’ | ’8’ | ’9’

    这里digit指的是10个阿拉伯数字

    indicator ::= ’e’ | ’E’

    digits ::= digit ...

    这里定义了digits的概念,就是几位数

    decimal-part ::= digits ’.’ | digits

    exponent-part ::= indicator digits

    infinity ::= ’Infinity’ | ’Inf’

    nan ::= ’NaN’ | ’sNaN’

    numeric-value ::= decimal-part | infinity

    numeric-string ::= numeric-value | nan

    where the characters in the strings accepted for infinity and nan may be in any case.

    2/3

    decNumber module这个函数计算数的结构,这里给出了一个计算某个数值是几位数的例子,分别是-1234.50,0和数字负无穷大。

    Examples:

    If DECDPUN were 4,

    如果这个数是-1234.50

    the value -1234.50 would be encoded with:

    digits = 6

    exponent = -2

    bits = 0x80

    lsu = {3450, 12}

    数0的各个参数的值为,这里很明确的指出数0的digits(几位数)是1,

    the value 0 would be:

    digits = 1

    exponent = 0

    bits = 0x00

    lsu = {0}

    –¥ (minus infinity) would be:

    digits = 1

    exponent = 0

    bits = 0xC0

    lsu = {0}

    3/3

    到这里,希望认为0不是一位数的人能意识到,可以认为0是一位数,而且认为0是一位数不是没有道理。

    本文关键词:

    版权声明:

    1、本文系转载,版权归原作者所有,旨在传递信息,不代表看本站的观点和立场。

    2、本站仅提供信息发布平台,不承担相关法律责任。

    3、若侵犯您的版权或隐私,请联系本站管理员删除。

    4、文章链接:http://www.1haoku.cn/art_878689.html

    相关资讯

    ©2019-2020 http://www.1haoku.cn/ 国ICP备20009186号05-05 03:00:45  耗时:0.027
    0.0267s