Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: Sainthood via Seniority Simulation

by ysth (Canon)
on Nov 05, 2003 at 19:18 UTC ( #304832=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Sainthood via Seniority Simulation
in thread Sainthood via Seniority Simulation

People didn't seem to like my asking for further explanation :(. I still don't see the bug, though I see my loop is written in a rather confusing way :(. I'm trying to compare what I have with sauoq's version. The first difference I see is whether the day number is printed just before or just after incrementing, which is really a cosmetic issue. We also differ on if the "used all votes" bonus applies to monks; Voting/Experience System could be read either way. (update: monks(5) don't seem to get the bonus--updating my version now)

my version:

increment level if appropriate increment day add per-vote xp add login xp add all-votes-used xp repeat
sauoq's version:
increment day increment level if appropriate add login xp add per-vote xp add all-votes-used xp repeat

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://304832]
help
Chatterbox?
[pryrt]: 1nickt, sprintf "%.16e", $v will always give enough precision to see 1 ULP (the smallest fractional part) of a standard 64bit Perl NV*
[pryrt]: (*: for systems where $Config{nvsize}==8 )
[pryrt]: Thus, that's "enough precision" to tell the difference between 1.0 and 1.0+1ULP
[pryrt]: But in what circumstance does your problem arise? When, in Perl, does the integer 1 not work identically to the floating-point NV 1.0000000000000000 e0?

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (16)
As of 2017-05-24 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?