|
From: Luigi B. <lui...@gm...> - 2009-03-27 16:05:44
|
On Fri, 2009-03-27 at 14:43 +0000, na...@us... wrote: > Revision: 16086 > http://quantlib.svn.sourceforge.net/quantlib/?rev=16086&view=rev > Author: nando > Date: 2009-03-27 14:43:52 +0000 (Fri, 27 Mar 2009) > > Log Message: > ----------- > removed awkward space before percent sign. Revert this if you don't agree Actually, I don't. It seems that there's no "right" way to do it, as according to Wikipedia (under "percent sign") There is no consensus as to whether or not to include a space between the number and percent sign in English. Many authorities prescribe that there should be no space, whilst others typographically require one for various reasons; these include The International System of Units and the ISO 31-0 standard, while the TeX typesetting system encourages it. This is in accordance with the general rule of adding a non-breaking space between a numerical value and its corresponding unit of measurement. However, style guides – such as the Chicago Manual of Style – commonly prescribe to write the number and percent sign without any space in between. However, I'd favor keeping the space. it's true that 5% might be a bit more readable than 5 %, but on the other hand, an output like 1x5: model 10.04471%, market 11.48000% (-1.43529%) 2x4: model 10.51179%, market 11.08000% (-0.56821%) 3x3: model 10.70375%, market 10.70000% (+0.00375%) 4x2: model 10.83882%, market 10.21000% (+0.62882%) 5x1: model 10.94492%, market 10.00000% (+0.94492%) (from the BermudanSwaption example) looks to me more awkward than the alternative. Luigi -- Father's got the sack from the water-works For smoking of his old cherry-briar; Father's got the sack from the water-works 'Cos he might set the water-works on fire. |