Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-12 Thread Platonides
Greg L wrote: > If you can remember, can you put a Post-it Note on your last Fedora > box to e-mail me when you take it off-line? > > [[User:Greg L]] You can watch yourself bug 17452 https://bugzilla.wikimedia.org/show_bug.cgi?id=17452 ___ Wikitech

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Greg L
Ditto. Thanks Brian. I agree with your assessment that there is no imperative whatsoever to do software fixes for something that will go away on its own in a few weeks. I will just advise editors that {val} may LOOK like it can do 13 and 14-digit numbers, but it can’t do them consistently an

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Greg L
Ok Domas, you’re just not getting it here. Try going to this example page… http://en.wikipedia.org/wiki/User:Greg_L/val_failure_example Do you see all those numeric equivalencies in high-precision scientific notation? Those types of numbers appear in science articles all over Wikipedia. Do

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Robert Rohde
On Wed, Feb 11, 2009 at 3:45 PM, Brion Vibber wrote: > All the remaining Fedora boxes will be reinstalled with our current, > consistent Ubuntu installation over the next few weeks -- we just need > to ensure that all text external storage has been successfully migrated > out of the app server clu

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Brion Vibber
On 2/11/09 11:15 AM, Robert Rohde wrote: > Thanks Brion. > > It is nice to know I had the right understanding of the problem. :-) > > Any thoughts on whether one or the other setting might be applied as a > standard across all of the servers? Based on your comment about > Fedora, should I underst

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Domas Mituzas
Hello! > Yes Domas, haha, because no one would ever want to write about math or > high precision scientific measurements in an encyclopedia. Since when you need floating point math in presentation language, when you're writing about floating point math? There're plenty of topics that our encycl

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Greg L
Gregory, others: > Division is very much math and has significant implications on > precision. Uhm… yeah, division is math; that much is not lost on an R&D engineer. What I mean is that “in the final analysis” (what {val} *does* for delimiting numbers), is that no math services are perform

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Gregory Maxwell
On Wed, Feb 11, 2009 at 2:17 PM, greg_l_at_wikipedia wrote: [snip] > In the final analysis, no real "math" is performed on these > significands; > all that is happening is delimiters (either a comma or a gap) Division is very much math and has significant implications on precision. You might th

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread greg_l_at_wikipedia
On 2/10/09 10:47 AM, Brion Vibber wrote: Since page renderings are cached, that doesn't necessarily mean it's the server that rendered your page... Brion, you can ?action-purge or go to edit mode and hit “Show preview” to work around cacheing. Doing so demonstrates that about 20% of the time, th

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Robert Rohde
On Wed, Feb 11, 2009 at 10:47 AM, Brion Vibber wrote: > 'precision = 12' is set, based on the defaults from PHP's own > php.ini-dist, in the php.ini used on our remaining Fedora-based servers. > > Our newer Ubuntu-based servers have no 'precision' setting in their > php.ini files, so the default

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Brion Vibber
On 2/10/09 9:05 PM, Robert Rohde wrote: > Would someone be willing to check whether some of the servers are set > to precision=12 and others to precision=14? I'm not sure if it is > useful, but I made a point of capturing the "Served by" comment a > couple times when I saw truncation to 12 digits.

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Robert Rohde
On Wed, Feb 11, 2009 at 9:58 AM, Gregory Maxwell wrote: > On Wed, Feb 11, 2009 at 12:29 PM, Robert Rohde wrote: >> Yes Domas, haha, because no one would ever want to write about math or >> high precision scientific measurements in an encyclopedia. > > Holy crud! You don't use floating point for

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Gregory Maxwell
On Wed, Feb 11, 2009 at 12:29 PM, Robert Rohde wrote: > Yes Domas, haha, because no one would ever want to write about math or > high precision scientific measurements in an encyclopedia. Holy crud! You don't use floating point for this! If you need deterministic behaviour and high accuracy you

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Robert Rohde
On Wed, Feb 11, 2009 at 7:25 AM, Domas Mituzas wrote: > > On Feb 11, 2009, at 7:05 AM, Robert Rohde wrote: > >> It appears that the precision setting for PHP may be set >> inconsistently across the WMF server pool. > > hi, are you still doing your school homework assignments with > wikitext? get a

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread greg_l_at_wikipedia
On Feb 11, 2009, at 7:25 AM, Domas Mituzas wrote: On Feb 11, 2009, at 7:05 AM, Robert Rohde wrote: > It appears that the precision setting for PHP may be set > inconsistently across the WMF server pool. hi, are you still doing your school homework assignments with wikitext? get a calculator, a

Re: [Wikitech-l] inconsistent precision in PHP output

2009-02-11 Thread Domas Mituzas
On Feb 11, 2009, at 7:05 AM, Robert Rohde wrote: > It appears that the precision setting for PHP may be set > inconsistently across the WMF server pool. hi, are you still doing your school homework assignments with wikitext? get a calculator, already! -- Domas Mituzas -- http://dammit.lt/ --

[Wikitech-l] inconsistent precision in PHP output

2009-02-10 Thread Robert Rohde
It appears that the precision setting for PHP may be set inconsistently across the WMF server pool. PHP's internal floating point format is the same as a C double giving ~15 digits of precision. By default, current versions of PHP display 14 digits when rendering numbers for output. This is cont