Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Re: Golf: overtone calculatorby BrowserUk (Patriarch) |
on Sep 02, 2002 at 02:01 UTC ( [id://194497]=note: print w/replies, xml ) | Need Help?? |
Is it so different from yours? Instead of using sprintf, I multiply the result by 1e3 int it and divide by 1e3 again. Which bit gave you problem's? BTW. I noted your comment re: jynx's and lexical sorting when n>10, and realise that mine suffers the same flaw. So, numerisising(is that a word?) the sort, I got
The extra 9 chars* cost me dear, and you were winning by 3, but I couldn't have that so...for a round of 76:
but that meant using a map in a void context so for the same 76, but avoiding that pesky map
By now the light was fading and it was hard to keep my eye on the ball, so bad light stopped play and the tournement can resume tomorrow with jynx first to step up to the tee:) Update However, during floodlite play, (and stealing jynx's best bits), and retaining the more aesethically pleasing trailing zero suppression:), I give you this for 71
* I officially motion, on behalf of golfer's everywhere, that Perl6 have a sortn built-in that assumes the $a<=>$b. (Along with rev as an alias for reverse 8^). Well It's better than the Abottoire, but Yorkshire!
In Section
Meditations
|
|