<div dir="ltr">There's already float16, float32, float64, and float128 in numpy.  That would be the best place to add float8 if you want it.<div><br></div><div>Best,</div><div>Neil<br><div><br>On Wednesday, January 14, 2015 at 7:19:01 PM UTC-5, Steven D'Aprano wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On Wed, Jan 14, 2015 at 02:44:27AM -0800, Andrew Barnert wrote:
<br>
<br>> I think your confusion here is entirely my fault. For simplicity, it's 
<br>> often helpful to look at tiny float representations--e.g., a 4-bit 
<br>> float with 1 sign bit, 1 mantissa bit, and 2 exponent bits (that, if 
<br>> both 1, mean inf/nan), 
<br>
<br>Since this is python-ideas, how about a minifloat type?
<br>
<br>I think a 4-bit float is a bit *too* mini, 8-bit sounds about right.
<br>
<br>
<br>(I know, I know, it should be a third-party library, not a built-in :-)
<br>
<br>
<br>-- 
<br>Steven
<br>______________________________<wbr>_________________
<br>Python-ideas mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="rgMrbOHikK4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">Python...@python.org</a>
<br><a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\46sa\75D\46sntz\0751\46usg\75AFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-ideas\46sa\75D\46sntz\0751\46usg\75AFQjCNFj1EaNHnVmh20FnFPoUi4J-MpfQw';return true;">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a>
<br>Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fpython.org%2Fpsf%2Fcodeofconduct%2F\46sa\75D\46sntz\0751\46usg\75AFQjCNHJOrArSUDKkjrnthO6_CznMzkPsA';return true;">http://python.org/psf/<wbr>codeofconduct/</a>
<br></blockquote></div></div></div>