八进制/十六进制符号从何而来? [英] Where did the octal/hex notations come from?

查看:922
本文介绍了八进制/十六进制符号从何而来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在所有的这个时候,我从来没有想过要问这个问题;我明白这是来自C ++,但什么是它背后的原因:

After all of this time, I've never thought to ask this question; I understand this came from c++, but what was the reasoning behind it:


  • 指定小数,你
    通常会

  • 由领先的0
  • 指定八进制数字
  • 以0x
  • 指定十六进制数
  • Specify decimal numbers as you normally would
  • Specify octal numbers by a leading 0
  • Specify hexadecimal numbers by a leading 0x

0,为什么?为什么0X?是否有基础-32的自然发展?

Why 0? Why 0x? Is there a natural progression for base-32?

推荐答案

我不知道...

0为0ctal

0X是,好了,我们已经用0来表示八进制和有十六进制的一个x使塞在那里了。

0x is for, well, we've already used 0 to mean octal and there's an x in hexadecimal so bung that in there too

作为自然的过程,最好看最新的编程语言,可以贴上标,如

as for natural progression, best look to the latest programming languages which can affix subscripts such as

123_27(除$ P $ _ PT意味着下标)

123_27 (interpret _ to mean subscript)

标记

这篇关于八进制/十六进制符号从何而来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆