Timeline for Expand the number
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Feb 3, 2016 at 7:49 | comment | added | F. Hauri - Give Up GitHub | Well now, this seem correct! +1 for debugging effort! | |
Jan 21, 2016 at 21:25 | comment | added | Sake | Changed a bit : ((length$a[0])-$i-2) instead of ((length$a[0])-$i-1) in the first loop. Should be ok now. (I could chomp the input, but it adds a lot more characters) | |
Jan 21, 2016 at 21:23 | history | edited | Sake | CC BY-SA 3.0 |
edited body
|
Jan 21, 2016 at 18:35 | comment | added | F. Hauri - Give Up GitHub |
36 => 300+60 ! I've copied your script to a script file, added shebang #!/usr/bin/perl and run by: ./exp.pl <<<36;echo ... (work fine with floating: 3.62.=> 3+0.6+0.02 )
|
|
Jan 21, 2016 at 18:26 | comment | added | Sake | Ah, figured it out : it's because Ideone ignores the trailing newline when something is in stdin, while executing the script inside the interpreter adds a trailing newline at the end of the input, adding 1 to the length of the array. Meh :c | |
Jan 21, 2016 at 13:44 | comment | added | F. Hauri - Give Up GitHub | I just tested your script on my perl interpreter (v5.20.2) | |
Jan 21, 2016 at 9:26 | comment | added | Sake | Strange, since I tested 5 with the link I provided yesterday after you put your first comment. Mind trying now ? (I changed the link again) | |
Jan 21, 2016 at 9:25 | history | edited | Sake | CC BY-SA 3.0 |
edited body
|
Jan 20, 2016 at 16:29 | comment | added | F. Hauri - Give Up GitHub |
You have an error somewhere: when I enter 5 it return 50 .
|
|
Jan 20, 2016 at 13:54 | comment | added | Sake | I put the wrong Ideone link. It doesn't take into account changes made in Edit mode. :( It should work now. | |
Jan 20, 2016 at 13:54 | history | edited | Sake | CC BY-SA 3.0 |
edited body
|
Jan 20, 2016 at 13:40 | comment | added | F. Hauri - Give Up GitHub | This seem not work with integer numbers. | |
Jan 20, 2016 at 12:50 | history | answered | Sake | CC BY-SA 3.0 |