Hi all!
I have this big problem with making 64 bit hexa calculations and just found
out that windows calc CANNOT calculate more than 32 BIT!!! Does anybody know
of a reliable calculator to make double or long double hexadecimal
calculations that I can use? I really don't want to have to spend 300 euros
for an HP calculator and there HAS to be something around that I can
download. I have been trying to find something through google but none the
software I downloaded was accurate enough.
THANXS...
Yodai 7 3078
Yodai wrote: I have this big problem with making 64 bit hexa calculations and just found out that windows calc CANNOT calculate more than 32 BIT!!! Does anybody know of a reliable calculator to make double or long double hexadecimal calculations that I can use? I really don't want to have to spend 300 euros for an HP calculator and there HAS to be something around that I can download. I have been trying to find something through google but none the software I downloaded was accurate enough. http://gcc.gnu.org/
#include <stdio.h>
int main(void)
{
long long a = 0xDEADBEEF007, b = 0xAFFEAFFEAFFE;
printf("%llx + %llx = %llx\n", a, b, a + b);
}
gcc -Wall -std=c99 -o yodai yodai.c
Jirka
Jirka Klaue <jk****@ee.tu-berlin.de> scribbled the following: Yodai wrote: I have this big problem with making 64 bit hexa calculations and just found out that windows calc CANNOT calculate more than 32 BIT!!! Does anybody know of a reliable calculator to make double or long double hexadecimal calculations that I can use? I really don't want to have to spend 300 euros for an HP calculator and there HAS to be something around that I can download. I have been trying to find something through google but none the software I downloaded was accurate enough. http://gcc.gnu.org/
#include <stdio.h> int main(void) { long long a = 0xDEADBEEF007, b = 0xAFFEAFFEAFFE; printf("%llx + %llx = %llx\n", a, b, a + b); }
gcc -Wall -std=c99 -o yodai yodai.c
"Affe Affe Affe"? Is this some German secret chant for invoking monkeys?
=)
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"A bee could, in effect, gather its junk. Llamas (no poor quadripeds) tune
and vow excitedly zooming."
- JIPsoft
In <bn**********@mamenchi.zrz.TU-Berlin.DE> Jirka Klaue <jk****@ee.tu-berlin.de> writes: Yodai wrote:
I have this big problem with making 64 bit hexa calculations and just found out that windows calc CANNOT calculate more than 32 BIT!!! Does anybody know of a reliable calculator to make double or long double hexadecimal calculations that I can use? I really don't want to have to spend 300 euros for an HP calculator and there HAS to be something around that I can download. I have been trying to find something through google but none the software I downloaded was accurate enough.
http://gcc.gnu.org/
#include <stdio.h> int main(void) { long long a = 0xDEADBEEF007, b = 0xAFFEAFFEAFFE; printf("%llx + %llx = %llx\n", a, b, a + b); }
gcc -Wall -std=c99 -o yodai yodai.c
Who says that if you use gcc -std=c99, the standard library installed on
the system will be automatically C99-conforming?
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Dan Pop wrote: Jirka Klaue <jk****@ee.tu-berlin.de> writes:
.... http://gcc.gnu.org/
#include <stdio.h> int main(void) { long long a = 0xDEADBEEF007, b = 0xAFFEAFFEAFFE; printf("%llx + %llx = %llx\n", a, b, a + b); }
gcc -Wall -std=c99 -o yodai yodai.c
Who says that if you use gcc -std=c99, the standard library installed on the system will be automatically C99-conforming?
Nobody said it. One would hope so, though. Otherwise it would be quite
pointless to use -std=c99, wouldn't it?
Jirka
In <3F**************@ee.tu-berlin.de> Jirka Klaue <jk****@ee.tu-berlin.de> writes: Dan Pop wrote:Jirka Klaue <jk****@ee.tu-berlin.de> writes: ...http://gcc.gnu.org/
#include <stdio.h> int main(void) { long long a = 0xDEADBEEF007, b = 0xAFFEAFFEAFFE; printf("%llx + %llx = %llx\n", a, b, a + b); }
gcc -Wall -std=c99 -o yodai yodai.c
Who says that if you use gcc -std=c99, the standard library installed on the system will be automatically C99-conforming?
Nobody said it. One would hope so, though. Otherwise it would be quite pointless to use -std=c99, wouldn't it?
Precisely my point: it *is* pointless to use -std=c99 and expect code
using C99 *library* features to work. Proof:
mentor:~/tmp 11> cat test.c
#include <math.h>
int main()
{
return round(0);
}
mentor:~/tmp 12> gcc -std=c99 test.c -lm
Undefined first referenced
symbol in file
round /var/tmp/cc92eQ7s.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Things get even worse if the C99 function is there, but with different
semantics (as is the case with certain snprintf and freopen
implementations).
-std=c99 is only providing support for certain C99 *language*
features, and even that support might be broken (see http://gcc.gnu.org/gcc-3.0/c99status.html for details).
Expecting anything else from -std=c99 is downright foolish.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de Yodai wrote:
I have this big problem with making 64 bit hexa calculations and just found out that windows calc CANNOT calculate more than 32 BIT!!! Does anybody know of a reliable calculator to make double or long double hexadecimal calculations that I can use? I really don't want to have to spend 300 euros for an HP calculator and there HAS to be something around that I can download. I have been trying to find something through google but none the software I downloaded was accurate enough.
Somehow, I don't have the OP's question on my news server so I'm replying
here.
This is totally off-topic, so no follow-ups please.
The version of windows calculator I have at work does support 64-bit data.
You have to select the quad-word radio selection to make it work.
I'm not at work now so I can't check the version.
Mac
--
On 22 Oct 2003 13:23:44 GMT, Da*****@cern.ch (Dan Pop) wrote: #include <stdio.h> int main(void) { long long a = 0xDEADBEEF007, b = 0xAFFEAFFEAFFE; printf("%llx + %llx = %llx\n", a, b, a + b); }
gcc -Wall -std=c99 -o yodai yodai.c
Who says that if you use gcc -std=c99, the standard library installed on the system will be automatically C99-conforming?
Being that this is a std. C newsgroup, I saved the above (which is not
standard C, but hey....) The output was not what I expected.... (I
compiled on Turbo C++ 3.0 for DOS) I got:
f007 + dbee = affe
Why not display the full contents of a,b, and c? I know on Turbo C++
for DOS, a long int is supposed to be 32 bits.... (at least I was
almost positive....) But granted, not guarantees according to
standard.... As far as the above, I don't believe C has any standard
for a voided main program.... And main should return a value.... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ron Adam |
last post by:
Hi, I'm having fun learning Python and want to say thanks to everyone
here for a great programming language.
Below is my first Python program (not my first program) and I'd
apreciate any...
|
by: Kasp |
last post by:
Hi there,
I am trying to make an OLAP cube on a table having two columns (datetime,
Number_of_times_an_event_occured).
My dimension is time and I want to measure the Min and Max times an event...
|
by: Joe Bongiardina |
last post by:
What does the message "calculating...." mean in the lower left status area
of a form?
I have a form with no calculated, concatenated or lookup fields, yet it
displays this msg.
The form takes...
|
by: jlm |
last post by:
I have a form which feeds table (TblEmpLeave) of Employee Leave Time
(time taken off for Administrative, Annual, Sick, Compensation leave).
I have EmpID, LeaveDate, LeaveType, LeaveHours fields on...
|
by: robin9876 |
last post by:
In an Access 2000 database on some forms 'Calculating...' is
continuously displayed in the status bar window and the text of the
control is automatically selected.
The only workaround is switching...
|
by: sugaray |
last post by:
Hi, my problem with calculating the size of an array is when
I pass an array as a parameter to a function which perform the
calculation, the result never comes right, like below:
int...
|
by: Umesh |
last post by:
i want to calculate the time required to execute a program. Also i
want to calcute the time remaining for the execution of the program.
how can i do that?
pl mention some good websites for...
|
by: laredotornado |
last post by:
Hi,
Can anyone recommend a free script for calculating UPS shipping? I am
familiar with the script written in 2000 by Jason Costomiris, but UPS
is using an XML interface and I wondered if...
|
by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= |
last post by:
Say I have a class like,
class Sample
{
public decimal first = 10;
public decimal second = 20;
}
I have initialized it
|
by: sumit kale |
last post by:
Hi,
Can somebody help me resolve my problem ?
I am getting error when calculating total using unbound textfiled in subform.
I have a main form called purchase_register_master and a subform...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |