smallest float number
gabor
gabor at z10n.net
Wed Feb 12 18:51:19 EST 2003
On Thu, 2003-02-13 at 00:29, Mark McEahern wrote:
> [gabor]
> > is there an easy way to write the smallest float number?
> >
> > i just don't want to use things like
> > a = -100000000000000000000.0
>
> does something like this help:
>
> start = 10.0
> divide_by = 10.0
>
> while start != 0:
> start = start / divide_by
> print start
:)
but:
sorry, maybe i wasn't clear:
i want the negativest float.... something like minus-infinity
like the "largest*(-1.0)"...
gabor
More information about the Python-list
mailing list