On Mon, Apr 26, 2010 at 3:19 PM, Chris Rebert <span dir="ltr"><<a href="mailto:clp2@rebertia.com">clp2@rebertia.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Apparently either you and the General Decimal Arithmetic spec differ<br>
on what constitutes engineering notation, there's a bug in the Python<br>
decimal library, or you're hitting some obscure part of the spec's<br>
definition. I don't have the expertise to know which is the case.<br>
<br>
The spec: <a href="http://speleotrove.com/decimal/decarith.pdf" target="_blank">http://speleotrove.com/decimal/decarith.pdf</a><br>
(to-engineering-string is on page 20 if you're interested)<br>
<div class="im"><br></div></blockquote><div>I just gave Page 20 a quick read, and it says:<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">

if the number is non-zero, the converted exponent is adjusted to be a multiple of three (engineering notation) by positioning the decimal point with one, two, or three characters preceding it (that is, the part before the decimal point will range from 1 through 999); </blockquote>

<div><br>Obviously that would make  '1234567' not an Engineering notation?<br><br>Cheers,<br>Xav</div></div></div>