Talk:Imaginary base numbers: Difference between revisions
Content added Content deleted
mNo edit summary |
Thundergnat (talk | contribs) (→couple of minor points: Comment on a minor point) |
||
Line 5: | Line 5: | ||
Also, the even entries in the second half of the output from Kotlin, Java, Go, D, and C# all fail |
Also, the even entries in the second half of the output from Kotlin, Java, Go, D, and C# all fail |
||
to trim the unnecessary trailing ".0" (as the heading says, both pretty minor points). [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 04:21, 9 November 2018 (UTC) |
to trim the unnecessary trailing ".0" (as the heading says, both pretty minor points). [[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 04:21, 9 November 2018 (UTC) |
||
:<blockquote>"When translating the Sidef code to Phix, one thing I noticed is that parse_base() never has to deal with a leading '-'"...</blockquote> I put that in there following the principle of "Be liberal in what you accept and conservative in what you emit." |
|||
:But you're not wrong; assuming well formed input, that line is redundant. --[[User:Thundergnat|Thundergnat]] ([[User talk:Thundergnat|talk]]) 13:12, 9 November 2018 (UTC) |
Latest revision as of 13:13, 9 November 2018
couple of minor points
When translating the Sidef code to Phix, one thing I noticed is that parse_base() never has to deal with a leading '-', so I took that out. As far as I understand it, imaginary base numbers never use a minus sign. The same unnecessary handling exists in the Perl6 code. Also, the even entries in the second half of the output from Kotlin, Java, Go, D, and C# all fail to trim the unnecessary trailing ".0" (as the heading says, both pretty minor points). Pete Lomax (talk) 04:21, 9 November 2018 (UTC)
I put that in there following the principle of "Be liberal in what you accept and conservative in what you emit.""When translating the Sidef code to Phix, one thing I noticed is that parse_base() never has to deal with a leading '-'"...
- But you're not wrong; assuming well formed input, that line is redundant. --Thundergnat (talk) 13:12, 9 November 2018 (UTC)