big numbers

From: Nevzat Guler <nguler_at_jlab.org>
Date: Sun, 10 Jun 2007 08:46:23 -0400 (EDT)

	Hello,
	I am trying to divide following some big numbers, Below is the
simplified version of what I am doing with actual numbers: long long int a = 6488530998;
long long int b = 7409765618;
double c = ((double)(a)) / ((double)(b)); I print out the numbers but c comes out to be c = 1.7806

Result is correct when I try with small numbers, which proves me that i am not doing some simple mistake during division or conversion processes.. I concluded there should be something special about big numbers.. In normal C++ programs, "double" and "long long int" are doing the job but in root, they are not..

I appreciate any help. Thanks..

                                Nevzat Guler Received on Sun Jun 10 2007 - 14:46:34 CEST

This archive was generated by hypermail 2.2.0 : Sun Jun 10 2007 - 23:50:01 CEST