X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fsam.git;a=blobdiff_plain;f=chapters%2FBackground%2FStandards%2FPrecision.tex;h=3acacbde79504b41df880e527067a4dbafe33f7e;hp=0a9511cff9d5daf8fa92ac9202b0bb4fc8b4d9b4;hb=7fe12ce195f039925222ad98b38018ad31d1b1f2;hpb=689e433b348588e05f47d23385dbf05d239c95d2 diff --git a/chapters/Background/Standards/Precision.tex b/chapters/Background/Standards/Precision.tex index 0a9511c..3acacbd 100644 --- a/chapters/Background/Standards/Precision.tex +++ b/chapters/Background/Standards/Precision.tex @@ -1,3 +1,5 @@ +In this section we will overview the statements made about the precision with which an object can be stored by various vector graphics and document standards. + \subsection{PostScript} The PostScript reference describes a ``Real'' object for representing coordinates and values as follows: ``Real objects approximate mathematical real numbers within a much larger interval, but with limited precision; they are implemented as floating-point numbers''\cite{plrm}. There is no reference to the precision of mathematical operations, but the implementation limits \emph{suggest} a range of $\pm10^{38}$ ``approximate'' and the smallest values not rounded to zero are $\pm10^{-38}$ ``approximate''. @@ -13,7 +15,7 @@ In ``The METAFONT book'' Knuth appears to describe coordinates as fixed point nu \subsection{SVG} The SVG standard specifies a minimum precision equivelant to that of ``single precision floats'' (presumably referring to IEEE-754) with a range of \verb/-3.4e+38F/ to \verb/+3.4e+38F/, and states ``It is recommended that higher precision floating point storage and computation be performed on operations such as -coordinate system transformations to provide the best possible precision and to prevent round-off errors.''\cite{svg2011-1.1} An SVG Viewer may refer to itself as ``High Quality'' if it uses a minimum of ``double precision'' floats. +coordinate system transformations to provide the best possible precision and to prevent round-off errors.''\cite{svg2011-1.1} An SVG Viewer may refer to itself as ``High Quality'' if it uses a minimum of ``double precision'' floats for view transformations. %\begin{comment} \subsection{Javascript} We include Javascript here due to its relation with the SVG, HTML5 and PDF standards.