Talk:Count in octal: Difference between revisions

Content added Content deleted
(I am talking about at language level, not cpu level here.)
(fixed integers and native octal)
Line 12: Line 12:
::Does one of the examples here use "native octal"? I'm not sure what that means. --[[User:Mwn3d|Mwn3d]] 20:42, 6 June 2011 (UTC)
::Does one of the examples here use "native octal"? I'm not sure what that means. --[[User:Mwn3d|Mwn3d]] 20:42, 6 June 2011 (UTC)
::: Perhaps representing the octal value as a variable width ascii string (instead of a fixed integer) might be "native octal"? --[[User:Rdm|Rdm]] 21:27, 6 June 2011 (UTC)
::: Perhaps representing the octal value as a variable width ascii string (instead of a fixed integer) might be "native octal"? --[[User:Rdm|Rdm]] 21:27, 6 June 2011 (UTC)

:::: If the language natively supports representing fixed integers in octal notation, then it has native octal support. Some languages (such as awk), may support fixed integers, but do not have native octal, because manipulation has to be performed programmatically to make an octal representation. --[[User:Markhobley|Markhobley]] 23:00, 6 June 2011 (UTC)

:: I'd have to agree that native octal doesn't make much sense. All math routines work in binary, or otherwise operate very similarly regardless of base. Only input and output are different, so if the goal is to demonstrate octal manipulation, IO would be a better task. That's covered by other tasks though. [[User:MagiMaster|MagiMaster]] 21:34, 6 June 2011 (UTC)
:: I'd have to agree that native octal doesn't make much sense. All math routines work in binary, or otherwise operate very similarly regardless of base. Only input and output are different, so if the goal is to demonstrate octal manipulation, IO would be a better task. That's covered by other tasks though. [[User:MagiMaster|MagiMaster]] 21:34, 6 June 2011 (UTC)