Biggest float number?

Pearu Peterson pearu at cens.ioc.ee
Tue Mar 27 08:09:04 CEST 2001


On Mon, 26 Mar 2001, C. S. Xu wrote:

> Hi all,
> 
> It seems the biggest floating number in Python can be:
>     2.**1024 - 1.
> which is about 1.8E308. Is there any way to get bigger value than this,
> just like long intergers almost have no limits?

Try GMPY

  http://gmpy.sourceforge.net/

For example,
>>> from gmpy import mpf
>>> mpf('1e2000000000')
mpf('1.e2000000000')
>>> mpf('1.1e200000000')+mpf('3.1e200000000')
mpf('4.2e200000000')

Regards,
	Pearu




More information about the Python-list mailing list