Hi, Harvey-
Harvey Rayner wrote:
> does anyone know of a utility i can use to round path values to required
> decimal places?
You can do this with the magical power of Regular Expressions! Open the
file in any editor with regex capabilities, such as RegexBuddy or
TextPad (I use these tools, but regex is widely supported), and replace
this:
(\d*)\.(\d{2})(\d*)
with this:
\1.\2
The first statement says, match any number of digits, followed by a ".",
followed by 2 digits, followed by any number of digits. The replacement
statement says, the results of the first bracket, followed by ".",
followed by the results of the second bracket. This will strip down the
strings to all but the first 2 decimal places. There is probably a way
to round up, rather than truncate, but I'm too tired at the moment to
find it.
Regards-
-Doug
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/