Talk:Binary digits: Difference between revisions

m
→‎Natural numbers: changed the wording slightly. -- ~~~~
m (→‎Natural numbers: changed the wording slightly. -- ~~~~)
 
(3 intermediate revisions by 2 users not shown)
Line 57:
 
:Any question about zero from the wp link description shouldn't really matter for the purposes of this task. What does matter are that it ''doesn't'' include negative numbers with absolute value greater than zero. I'm sure someone could pick holes in this if they tried, but I think the clarification in the linked text should be OK for the purposes of the task. (But then I did add the link). --[[User:Paddy3118|Paddy3118]] 10:20, 9 July 2011 (UTC)
 
:: I think the matter of zero is very important to this task as some of the example programs don't handle the case of zero correctly, in that some example programs remove ''all'' leading zeroes, and in the case of a value of zero, a "null" value is returned. Since almost all program examples don't show the case for zero, it's hard for casual readers of other languages to recognize that (if) the error exists in the code (of specifically handling a zero case). I didn't flag those program examples as '''incorrect''' as I don't have a definitive way of proving my observations. It's a trivial case, but still important. Rockets blowing up, anyone? -- [[User:Gerard Schildberger|Gerard Schildberger]] 18:53, 27 June 2012 (UTC)
 
::: I concur Gerard. examples should work for zero but it is hard to check if output for zero is not shown. --[[User:Paddy3118|Paddy3118]] 20:33, 27 June 2012 (UTC)
 
:::: Yes, indeedy. I previously hurriedly added the special case of zero to the two REXX versions (to at least ''practice what I preach''). What prompted my comment above was that the '''NETREXX''' version had an error in it, but I couldn't verify that as I don't have a NetRexx interpreter. I'm 99% sure of the error, but I wouldn't want to bet my life on it and flag an example as incorrect just on my ''understanding'' of that language (and not its execution). -- [[User:Gerard Schildberger|Gerard Schildberger]] 20:43, 27 June 2012 (UTC)
 
== Task review process ==