Timeline for Outputting ordinal numbers (1st, 2nd, 3rd)
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 6, 2020 at 12:41 | comment | added | Dom Hastings |
In fact, even shorter using /.../g syntax: Try it online!
|
|
| Jul 5, 2020 at 7:48 | comment | added | Dom Hastings |
I know this is pretty old and rules were different, but using $\ instead of s/// shaves a few bytes off: Try it online!
|
|
| Mar 16, 2017 at 15:46 | history | edited | Community Bot |
replaced http://meta.codegolf.stackexchange.com/ with https://codegolf.meta.stackexchange.com/
|
|
| Mar 16, 2017 at 15:46 | history | edited | Community Bot |
replaced http://meta.codegolf.stackexchange.com/ with https://codegolf.meta.stackexchange.com/
|
|
| Apr 5, 2013 at 6:24 | vote | accept | Nicole | ||
| Jan 20, 2012 at 23:56 | history | edited | Ilmari Karonen | CC BY-SA 3.0 |
how does it work?
|
| Jan 20, 2012 at 21:46 | history | edited | Ilmari Karonen | CC BY-SA 3.0 |
added 158 characters in body
|
| Jan 20, 2012 at 21:42 | comment | added | Ilmari Karonen | @GigaWatt: Indeed, I wrote the code before NickC answered my question about the input format, so I made it as generic as possible. | |
| Jan 20, 2012 at 21:05 | comment | added | Mr. Llama |
Should be able to drop the g off the substitution if you specify that each number must be on it's own line. Also, that'd let you change the word boundary to be $. But overall, +1, damn clever solution.
|
|
| Jan 20, 2012 at 19:01 | history | edited | Ilmari Karonen | CC BY-SA 3.0 |
added 264 characters in body
|
| Jan 20, 2012 at 18:53 | history | edited | Ilmari Karonen | CC BY-SA 3.0 |
fix approx. of pi
|
| Jan 20, 2012 at 18:47 | history | answered | Ilmari Karonen | CC BY-SA 3.0 |