Timeline for Pi got your number
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 3, 2018 at 18:16 | comment | added | Giuseppe | @djhurio right but regexpr(3,numbers::dropletPi(200))-2 returns -1 when it should return 9, try it | |
| Apr 3, 2018 at 18:15 | comment | added | djhurio | I do not see a problem here. Non of the input will contain 3. (I assume we deal with integers not reals in input). The test examples work with this. | |
| Apr 3, 2018 at 18:12 | comment | added | Giuseppe | @djhurio that doesn't work because we have to match in the digits after the decimal point. That was my first thought as well but that case ruins it. Maybe an "if"? | |
| Apr 3, 2018 at 18:10 | comment | added | djhurio | Maybe regexpr(scan(),numbers::dropletPi(200))-2? | |
| Apr 3, 2018 at 17:22 | history | edited | Giuseppe | CC BY-SA 3.0 | updated TIO link for use of input |
| Apr 3, 2018 at 14:30 | history | answered | Giuseppe | CC BY-SA 3.0 |