Talk:Decimal floating point number to binary: Difference between revisions

Line 7:
:: Technically, that decimal string is just the serialisation in Tcl. It's also a good-old IEEE binary double. People are encouraged to think in terms of the serialised forms, sure, but it's terribly slow to do everything that way. (We know because Tcl used to work that way, long ago.)
:: I ''believe'' the task is asking for a printed form that is in base two, i.e., that uses only the digits <tt>0</tt> and <tt>1</tt> (and appropriate non-digit characters). Thus, <tt>0.75</tt><sub>dec</sub> is the same as <tt>0.11</tt><sub>bin</sub>. –[[User:Dkf|Donal Fellows]] ([[User talk:Dkf|talk]]) 00:35, 5 February 2014 (UTC)
 
::: To me this task is not correctly named. I understand "floating point number" defined by IEEE and
what, e.g., PL/I produces when one codes
<lang pli>Dcl f Dec Fixed(15); f=1/3; Put skip list(f,unspecx(f)); </lang>
<pre>3.33333333333333E+0000 ABAAAAAAAAAA0A40</pre>
The subject of this task are decimal and binary numbers with fractional digits. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 10:45, 8 February 2014 (UTC)
 
==range of numbers==
2,289

edits