On 3, 11:47, [EMAIL PROTECTED] wrote:
> Hi! I'm wondering whether there's an easy way to remove unnecessary
> leading zeros from my floating point number.
>
> realS = float(-1.25e-5)
> imgS = float(-7.6e4)
>
> print complex(realS, imgS)
>
> >> (-1.25e-005-76000j)
>
> I would like it to look li
Hi! I'm wondering whether there's an easy way to remove unnecessary
leading zeros from my floating point number.
realS = float(-1.25e-5)
imgS = float(-7.6e4)
print complex(realS, imgS)
>> (-1.25e-005-76000j)
I would like it to look like (-1.25e-5-76000j)
--
http://mail.python.org/mailman/lis