减去base16 [英] subtracting base16

查看:47
本文介绍了减去base16的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法可以添加和减去base16数字?


btw base16也称为hex ..但我不想将FFFF转换为65355或w / e ..

i想要使F - 1 = E等。

is there a way i can add and subtract base16 numbers?


btw base16 is also known as hex.. but i dont want to convert FFFF into 65355 or w/e..

i want to make F - 1 = E and the like.

推荐答案


有没有办法可以添加和减去base16数字?
is there a way i can add and subtract base16 numbers?



为什么你不能正常进行减法,并将结果显示为十六进制? (基数16的数字通常称为十六进制,或简称为十六进制)。


例如......

Why can''t you just do the subtraction normally, and display the result as hex? (base 16 numbers are generally referred to as "hexadecimal", or "hex" for short).

For example...

展开 | 选择 | Wrap | 行号


我找不到直接减去它们的方法..


但每次我使用hex
i couldnt find a direct way to just subtract them..

but everytime i use the hex


函数,我得到一个编译错误,告诉我一个数组是预期的..


hexfinal = hex
function, I get a compile error that tells me an array is expected..

hexfinal = hex


这篇关于减去base16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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