Hex
DecHex 技术支持
开发者计算器 · 十进制十六进制同屏对照
常见问题
为什么我输入 1A,下面那张卡片显示 NULL?
下面那张卡片是把输入当作十进制来解释的,而 1A 不是合法的十进制数字(十进制只有 0–9)。上面那张卡片会给出它的十六进制解释。
需要切换进制吗?
不需要。两张卡片会同时给出两种解释,你想看哪种就看哪张。
位运算按多少位计算?
默认 64 位有符号。点开发者计算器右上角的芯片图标,可以改成 8、16、32、64 位,有符号或无符号。加减乘除不受位宽限制,按任意精度计算。
怎么逐位修改一个数?
点卡片里的二进制那一行,会打开位编辑器,点任意一位即可翻转。
基础计算器怎么切换到科学计算器?
点基础计算器右上角的网格按钮,在简单模式和科学模式之间切换;开发者计算器的同一个按钮用来切换简单布局和完整布局。
数字太长显示不全怎么办?
点一下被截断的数字,会弹出完整内容,可以选中或一键复制。
怎么添加小组件和控制中心按钮?
需要 iOS 18 及以上。长按主屏幕或锁定屏幕空白处,点「编辑」添加 DecHex 小组件;在控制中心点左上角的 + 添加 DecHex 按钮。小组件可以选择打开哪个页面,颜色跟随 App 主题。
怎么用 Siri?
需要 iOS 16 及以上。可以说「用 DecHex 转换进制」或「用 DecHex 计算」,也可以在「快捷指令」App 里使用 DecHex 的「转换进制」「计算表达式」两个操作。
怎么切换主题?
长按开发者计算器键盘上的 < 或 > 按钮;也可以在小工具页右上角的设置里挑选。
怎么关闭计算结果记忆?
长按 CLR 按钮,会提示「计算结果记忆已关闭」,同时清除已保存的状态和历史。
计算结果怎么复制?
长按结果数字,在弹出的菜单里选「复制」。
数据会上传吗?
不会。本应用完全不联网,所有数据只保存在你的设备上。
DecHex Support
Programmer calculator · hex and decimal side by side
FAQ
Why does the bottom card show NULL when I type 1A?
The bottom card reads your input as a decimal number, and 1A is not a valid decimal number. The top card shows its hexadecimal interpretation.
Do I need to switch number bases?
No. Both cards show both interpretations at the same time; just read the one you need.
What word size do bitwise operations use?
64-bit signed by default. Tap the chip icon at the top right of the Programmer Calculator to choose 8, 16, 32 or 64 bits, signed or unsigned. Addition, subtraction, multiplication and division always use arbitrary precision.
How do I edit individual bits?
Tap the binary row in a card to open the bit editor, then tap any bit to flip it.
How do I open the scientific calculator?
Tap the grid button at the top right of the Basic Calculator to switch between simple and scientific mode. On the Programmer Calculator the same button switches between the simple and full keypad.
A number is too long to fit. How can I see it?
Tap the truncated number to see it in full, select it or copy it.
How do I add the widgets and the Control Center button?
iOS 18 or later is required. Touch and hold an empty area of the Home Screen or Lock Screen, tap Edit and add a DecHex widget; in Control Center, tap + at the top left to add the DecHex button. Each widget can open a page of your choice and follows the app theme.
How do I use Siri?
iOS 16 or later is required. Say “Convert a number with DecHex” or “Calculate with DecHex”, or use the Convert Base and Calculate Expression actions in the Shortcuts app.
How do I change the theme?
Long press the < or > key on the Programmer Calculator, or pick one in Settings (the gear icon on the Tools page).
How do I turn off result memory?
Long press CLR. A message confirms that result memory is off, and the saved state and history are cleared.
How do I copy a result?
Long press the number and choose Copy.
Is any data uploaded?
No. The app never uses the network, and all data stays on your device.