Talk:Numeric separator syntax

From Rosetta Code
Revision as of 20:36, 30 August 2019 by Thundergnat (talk | contribs) (further comment)

commas

This task is somewhat similar to the   Commatizing numbers   Rosetta Code task which   (among other things)   asks to insert commas   (or other characters)   for number separation   (or numeric separator syntax).   That other task does not however, address what methods/facilities are   built into   a language when displaying/formatting numbers.     -- Gerard Schildberger (talk) 19:01, 30 August 2019 (UTC)

This task is for numeric input not for numeric output. What (if any) syntax will the compiler / interpreter accept as a grouping character and still consider the input item to be a number. --Thundergnat (talk) 19:07, 30 August 2019 (UTC)
I gathered that,   but   input   was not explicitly stated, just inferred,   but I assumed that's what the task's author had in mind.   And the specification of numbers   within   a computer program may not be considered as input   (as opposed to data being   read   as/for input, for instance, from a device).     -- Gerard Schildberger (talk) 19:54, 30 August 2019 (UTC)
[quote]...the specification of numbers within a computer program may not be considered input...[/quote] Really? Why not? It came from somewhere, whether it was read from an outside source at program execution or entered by the programmer. Anything that isn't part of the compiler is input; it just may be that it is input when the program is written rather than when it is executed. --Thundergnat (talk) 20:35, 30 August 2019 (UTC)