Re: http://mutt-ng.berlios.de/



Rocco Rutte:

just go and look for the quick_log10() function
(WTF 32 _characters_ for a 32 _bit_ int?)

Because counting the number of digits in a decimal representation of
an integer is a quick way of obtaining an approximate log_10 of that
integer? (Disclaimer: I’m not saying whether it makes sense in this
particular case, I’m just guessing at the code’s justification.)

-- Shot
--
I am a computer. I am dumber than any human and smarter than any administrator.

Attachment: pgp8wYtIcYamV.pgp
Description: PGP signature



Relevant Pages

  • Re: Euler Top 1000
    ... Not for problem 196 and all other problems where counting ... primes or sums of primes are involved. ... My guess is that none of these need even double precision on ... The problem of summing the digits of a^b is the worst problem ...
    (comp.lang.forth)
  • Re: Singles to Doubles
    ... In internal promotion from lower precision to higher, there isn't any information as to what the missing decimal digits should be -- that they should be zero is only one of a large set of possible values. ... The way to force that in any modern language I'm familiar with is essentially what we've been discussing here...make a decimal representation that looks like the number you want and then let the i/o routines read that in, doing the hard work of converting its internal representation to match as closely as possible. ...
    (microsoft.public.vb.general.discussion)
  • [SUMMARY] Probable Iterations (#141)
    ... Now it starts to look like counting, ... But if we drop the digits on both sides by one: ... The timesiterator does the actual count. ... puts if MODE ...
    (comp.lang.ruby)
  • Re: An infinite debate
    ... If r is an element of S, r's decimal representation is finite. ... case r's decimal representation has i digits. ... finite strings will not contain an infinite string. ...
    (sci.math)
  • Re: Demonstrating that 0.999... = 1
    ... > what is a/b when a and b are real numbers, ... > 1) a real number IS a decimal representation, that is, a finite sequence ... > of digits, followed by a dot, followed by a, possibily infinite, ...
    (sci.math)

Loading