[Jprogramming] Different results?

Ahmad Issa ahmadissa at gmail.com
Fri Jan 20 11:13:35 HKT 2006


(<. @: %:) 2x * 10^200x

produces a floating-point:
1.41421e100

On the other hand,
(<. @ %:) 2x * 10^200x

produces an extended precision integer:
14142135623730950488016887242096980785696718753769480731766797379907324784621070388503875343276415727

I don't really understand why this happens. Shouldn't they produce the same
thing since they are being applied to a single item?


Thanks, Ahmad


More information about the Programming mailing list