🔍

首页Home › 数学工具Math

🔢 负二进制解码(base −2 转十进制)Decode Negative Binary

把负二进制数(以 −2 为底的进位制)解码成十进制整数,也可以同时给出普通二进制(带负号):每行一个或用空格分隔,支持任意位数;可显示“输入 → 结果”对照和各位权重展开式(如 11011 = 16 − 8 − 2 + 1 = 7)。适合学习数制、做编程题和检查编码结果,数据在本地处理。Decode negabinary numbers (base −2) into decimal integers, optionally with the ordinary signed binary too. One value per line or separated by spaces, any length. Show an input → result table or the place-value expansion (e.g. 11011 = 16 − 8 − 2 + 1 = 7). Handy for learning number systems, programming puzzles and checking encoded results. Processed locally.

使用说明与常见问题How-to & FAQ

「负二进制解码(base −2 转十进制)」是什么?What is the Decode Negative Binary tool?

把负二进制数(以 −2 为底的进位制)解码成十进制整数,也可以同时给出普通二进制(带负号):每行一个或用空格分隔,支持任意位数;可显示“输入 → 结果”对照和各位权重展开式(如 11011 = 16 − 8 − 2 + 1 = 7)。适合学习数制、做编程题和检查编码结果,数据在本地处理。Decode negabinary numbers (base −2) into decimal integers, optionally with the ordinary signed binary too. One value per line or separated by spaces, any length. Show an input → result table or the place-value expansion (e.g. 11011 = 16 − 8 − 2 + 1 = 7). Handy for learning number systems, programming puzzles and checking encoded results. Processed locally.

如何使用「负二进制解码(base −2 转十进制)」?How do I use the Decode Negative Binary tool?

在「负二进制解码(base −2 转十进制)」中,把内容粘贴或输入到上方输入框,按需设置「输出」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「11011 1101」,得到「7 -3」。In the Decode Negative Binary: Paste or type into the input box, adjust "Output"; the result appears below instantly — click "Copy result" to copy it. Example: "11011 1101" → "7 -3".

什么是负二进制(negabinary)?What is negabinary?

负二进制是以 −2 为底数的进位制:从右往左各位的权重是 1、−2、4、−8、16……例如 11011 = 16 − 8 + 0 − 2 + 1 = 7。它不需要负号就能表示所有正负整数,例如 −1 写成 11、−2 写成 10。Negabinary is base −2: from the right the place values are 1, −2, 4, −8, 16 and so on, so 11011 = 16 − 8 + 0 − 2 + 1 = 7. It writes every positive and negative integer without a minus sign: −1 is 11 and −2 is 10.

负二进制里能有负号吗?Can a negabinary number have a minus sign?

不能,负二进制只由 0 和 1 组成,正负由各位的权重决定:位数为偶数个(最高位权重为负)时通常是负数,例如 11 = −2 + 1 = −1。输入里带 - 号会提示错误。No. Negabinary uses only 0 and 1 and the sign comes from the place values; numbers with an even number of digits (the top place is negative) are usually negative, e.g. 11 = −2 + 1 = −1. A minus sign in the input gives an error.

计算精度如何?How precise are the results?

「负二进制解码(base −2 转十进制)」使用 JavaScript 双精度浮点数(约 15–16 位有效数字),部分功能使用 BigInt 处理大整数。The Decode Negative Binary uses double-precision floating point (about 15–16 significant digits); some features use BigInt for large integers.

「负二进制解码(base −2 转十进制)」免费吗?需要注册吗?Is the Decode Negative Binary free? Do I need an account?

「负二进制解码(base −2 转十进制)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Decode Negative Binary is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

➖ 十进制转负二进制(负二进制编码)Encode Negative Binary🔄 二进制转负二进制(base −2)Convert Binary to Negabinary➖ 二进制减法计算器(带借位竖式)Subtract Binary Numbers➕ 十六进制加法计算器Add Hex Numbers✖️ 十六进制乘法计算器Multiply Hex Numbers🏛 十六进制转罗马数字Convert Hex to Roman Numeral🏛 罗马数字转十六进制Convert Roman Numeral to Hex📊 整数分析(个数、求和、平均、奇偶等)Analyze Integers± 更改整数正负号Change Integer Sign🔄 整数转回文数Convert Integer to Palindrome🔤 整数转英文 / 中文读法Convert Integers to Words🔢 英文 / 中文数字词转整数Convert Words to Integers

← 全部工具All tools