On May 11, 9:23 am, Chethan B <[email protected]> wrote:
> I still don't get it.. When i try to run epsalon's code i get the
> output in the format
> Case #32: 1.46888007111242e+015
> how to get the exact value without changing epsalon's code??

I tried epsalon's code myself. When I run it on my normal system (64-
bit,
perl v5.10.1, Debian) I get exact answers. When I run it on my netbook
(32-bit, perl v5.10.0, Debian) I get some answers in e-notation. I
think
that the significant difference is the 64-bit system, and that
epsalon
was using one too. I guess this means that perl falls back on floating
point numbers when you exceed the platform's integer range.
That's good to know. I've gotten used to the behavior of ruby and
python,
which fall back on their big-integer classes.

I'm sorry that you ran into this the hard way. I hope you still
qualified.

Richard Braakman

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to