如何忽略签名位? [英] How to ignore the signed bit?

查看:97
本文介绍了如何忽略签名位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数字-569360386,并将其转换为十六进制格式。

我使用toString(16),我得到-21efc002。


但是怎么能得到0xDE103FFE,这是忽略最高位为

签名位?

I have an num -569360386, and turn it into hex format.
I use toString(16),I get -21efc002.

But how can get 0xDE103FFE,which is to ignore the highest bit as the
signed bit?

推荐答案

2006年1月22日02:47:08 -0800, ch****@163.com 写道,引用或

间接引用某人说:
On 22 Jan 2006 02:47:08 -0800, ch****@163.com wrote, quoted or
indirectly quoted someone who said :
我有一个数字-569360386,并将其转换为十六进制格式。
我使用toString(16),我得到-21efc002。

但是怎么能得到0xDE103FFE,这是忽略最高位作为
签名位?
I have an num -569360386, and turn it into hex format.
I use toString(16),I get -21efc002.

But how can get 0xDE103FFE,which is to ignore the highest bit as the
signed bit?



http://mindprod.com/jgloss/hex.html

-

Canadian Mind Products,Roedy Green。
http:// mindprod.com Java自定义编程,咨询和教练ing。


see http://mindprod.com/jgloss/hex.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.


Roedy Green于2006年1月22日在comp.lang.javascript中写道
Roedy Green wrote on 22 jan 2006 in comp.lang.javascript:
2006年1月22日02:47:08 -0800, ch****@163.com 写道,引用或
间接引用某人说:
On 22 Jan 2006 02:47:08 -0800, ch****@163.com wrote, quoted or
indirectly quoted someone who said :
我有一个数字-569360386,并将其转换为十六进制格式。
我使用toString(16),我得到-21efc002。<但是怎么能得到0xDE103FFE,这是忽略最高位作为
带符号位?
I have an num -569360386, and turn it into hex format.
I use toString(16),I get -21efc002.

But how can get 0xDE103FFE,which is to ignore the highest bit as the
signed bit?


http://mindprod.com/jgloss/hex.html




那是关于Java,而不是Javascript!


-21efc002对我来说似乎没问题


=========== ===============

n = -569360386

document.write(n.toString( 16)+ '' <峰; br> ''); // -21efc002。


n = 569360386

document.write(n.toString(16)); // 21efc002。


-

Evertjan。

荷兰。

(请更改在我的电子邮件地址中的点'x''点数



That is about Java, not Javascript!

-21efc002 seems correct to me

==========================

n = -569360386

document.write(n.toString(16)+''<br>''); // -21efc002.

n = 569360386

document.write(n.toString(16)); // 21efc002.

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


那么有没有办法获得0xDE103FFE而不是-21efc002 ???


我必须使用自己的代码进行翻译吗?

Then is there any way to Get 0xDE103FFE but not -21efc002???

Must I use my own code to get translate it?


这篇关于如何忽略签名位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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