Re: 1e50 == 1?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: 1e50 == 1?
- From: Irayo <irayo.lt@...>
- Date: 2008年1月23日 07:20:50 -0600
Irayo wrote:
[...]
Also, as a side note, negatives have the same result:
> print(string.rep("1+", -10).."+1");
+1
Again, the coder made a mistake somewhere, or doesn't know what he's
doing, so it's worth considering throwing an error.
Another side note, (2^31)+1 has the same result going through string.rep
as 2^32 does.
--
Irayo