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

 
(7 intermediate revisions by 6 users not shown)
Line 13:
::: 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)
 
:::: I agree --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 13:4546, 8 February 2014 (UTC)
:::: I would suggest a subject "Converting fractions among bases" or some such, and then we could add other radices to the task. --[[User:TimToady|TimToady]] ([[User talk:TimToady|talk]]) 17:21, 8 February 2014 (UTC)
 
::::: I also agree (converting to other bases besides binary).   It's not that difficult to convert to any displayable base once one gets the methodology right.   Indeed, the (original) REXX version 1 solution could convert to ''any'' base. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:14, 8 February 2014 (UTC)
 
==range of numbers==
Line 20 ⟶ 23:
 
Also, I would assume that negative numbers would be allowed. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:07, 4 February 2014 (UTC)
 
== input ==
 
If every one use the same input like pi the it would be easier to compare/check. Is it OK ?--[[User:Adam majewski|Adam majewski]] ([[User talk:Adam majewski|talk]]) 20:39, 25 July 2019 (UTC)
:Is there something wrong with the examples given (23.34375 => 10111.01011, 1011.11101 => 11.90625)? Note that PI is of course always going to be an approximation and therefore likely to be inconsistent even between 32/64 bit versions of the same language. One thing I spotted worth checking is that it does not go into an infinite loop for eg 1/3. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 13:54, 26 July 2019 (UTC)
:: the examples are ok, but maybe a set of examples, the same for all languages, would be better when one wants to compare results. --[[User:Adam majewski|Adam majewski]] ([[User talk:Adam majewski|talk]]) 14:46, 26 July 2019 (UTC)
 
== Task Title ==
 
Suggest changing the task title to "Decimal Number to Binary". The floating point in the task description is redundant and misleading.
 
--[[User:DavidFashion|DavidFashion]] ([[User talk:DavidFashion|talk]]) 19:42, 24 February 2020 (UTC)
 
:I strongly disagree. This task is ''specifically'' about converting the fractional parts of a number, not just integers. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 17:45, 2 March 2020 (UTC)
7,795

edits