Re: SVGLength::convertToSpecifiedUnits

Your initial opinion is the intended one. Thus, "5mm" would be converted 
into ".5cm".

I'll see what I can do about updating the wording in the specification to 
be less ambiguous.

Jon Ferraiolo
SVG Editor
jferraio@adobe.com



At 01:38 PM 2/7/01 -0800, Blaine Brodie wrote:
>Some clarification please.  The SVGLength::convertToSpecifiedUnits()
>method is described as follows:
>
>"Preserve the same value, but convert to the specified unitType. Object
>attributes unitType, valueAsSpecified and valueAsString
>might be modified as a result of this method."
>
>My inital interpretation of this was that the method is intended to
>convert from one unit type to another so that, for example, 5 mm would be
>converted to 0.5 cm.  However, on a second reading, the phrase "preserve
>the same value" make me wonder if the intention is simply to change the
>unit type and to leave the value unchanged so that, in the previous
>example, 5mm would be converted to 5cm.
>
>Which of these two interpretations is the intended one?
>
>----
>Steven Dickson,                        Phone:  +1 (604) 684 7793 x102
>Software Devoper,                   Fax: +1 (604) 684 0298
>Savage Software,                    sdickson@savagesoftware.com
>Vancouver, BC, CANADA

Received on Wednesday, 7 February 2001 19:43:25 UTC