Talk:Largest int from concatenated ints: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Negative integers: new section)
 
(→‎Negative integers: Not allowed.)
Line 2: Line 2:


These programs look like they can't handle negative integers. I don't know how to concatenate two integers if the second one is negative; "4" "-5" => "4-5" is not an integer. Perhaps the task should specify positive integers? Or non-negative integers, if "0" is allowed? --[[User:Kernigh|Kernigh]] ([[User talk:Kernigh|talk]]) 00:38, 4 April 2013 (UTC)
These programs look like they can't handle negative integers. I don't know how to concatenate two integers if the second one is negative; "4" "-5" => "4-5" is not an integer. Perhaps the task should specify positive integers? Or non-negative integers, if "0" is allowed? --[[User:Kernigh|Kernigh]] ([[User talk:Kernigh|talk]]) 00:38, 4 April 2013 (UTC)

:Yep. I'm sloppy. I will fix this.[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 05:51, 4 April 2013 (UTC)

Revision as of 05:51, 4 April 2013

Negative integers

These programs look like they can't handle negative integers. I don't know how to concatenate two integers if the second one is negative; "4" "-5" => "4-5" is not an integer. Perhaps the task should specify positive integers? Or non-negative integers, if "0" is allowed? --Kernigh (talk) 00:38, 4 April 2013 (UTC)

Yep. I'm sloppy. I will fix this.Paddy3118 (talk) 05:51, 4 April 2013 (UTC)