跳过主要内容

十进制到八进制

将十进制数转换为八进制。

这个工具做什么?

直接答案将十进制整数转换为八进制(基数 8)。
关键事实通过连续除以 8 并记录余数来生成八进制数字。
处理在您的浏览器中本地运行;不会将数据发送到服务器。

如何使用

  1. 输入一个十进制数,如 15。\n点击转换。\n查看八进制值。

示例

输入

15

输出

17

Who is this for?

This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.

Programmers working with low-level data, computer science students, and electronics hobbyists reading registers — anyone tired of converting number bases by hand.

常见问题

15 在八进制中是多少?

17。

为什么 JS 显示 0o17?

现代 JS 使用 0o 前缀表示八进制字面量。

负数呢?

支持 — 符号会被保留。

此分类中的更多工具