开发者

64 bit hexadecimal to base 10 conversion [closed]

开发者 https://www.devze.com 2022-12-14 01:23 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. 开发者_StackOverflow中文版
Closed. This question is off-topic. It is not currently accepting answers.
开发者_StackOverflow中文版

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 12 years ago.

Improve this question

The hex value is 1679EDDF2CFD1455

I am expecting the decimal equivalent to be 1.619587084 X 10 ^ 18

If possible, could someone please confirm this, and if possible I would love more significant digits to the decimal value.

Thank you in advance.


Using python:

>>> 0x1679EDDF2CFD1455
1619587083804677205


Windows calculator says it's 1,619,587,083,804,677,205


For completeness, here's what Ruby says:

jfpoole@brakhage:~$ irb
>> 0x1679EDDF2CFD1455
=> 1619587083804677205


Since everyone's doing it, I'll throw in the bc version. :P

$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
ibase=16
1679EDDF2CFD1455
1619587083804677205


$ dc <<< '16i1679EDDF2CFD1455p'
1619587083804677205
$
0

精彩评论

暂无评论...
验证码 换一张
取 消