A setting to round the numbers off.

Post questions on how to use or achieve an effect in Inkscape.
Mitchell02

A setting to round the numbers off.

Postby Mitchell02 » Wed Jul 15, 2009 11:43 am

After I create an svg image and save it as svg plain code, I notice a lot of numbers after the decimal point on all the shapes I create.

I am looking for a book, tutorial or suggestion on a setting within Inkscape that will round these numbers to make my code simpler.

Thanks for any help.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: A setting to round the numbers off.

Postby microUgly » Sat Aug 01, 2009 10:39 am

I think your only option is to open your SVG in an fully featured text editor and write a regular expression to strip the decimals.

But if the drawing looks the way you want, what do the decimals matter?

User avatar
aho
Posts: 180
Joined: Sun Nov 04, 2007 9:51 am
Contact:

Re: A setting to round the numbers off.

Postby aho » Sat Aug 01, 2009 10:50 am

It's "numericprecision" attribute in preferences.xml. See: http://kaioa.com/node/25

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: A setting to round the numbers off.

Postby ~suv » Sun Aug 02, 2009 10:44 pm

tried that, but then Inkscape crashed badly - see this bug report.
(using 0.46+devel and 0.47pre, don't know if it works with 0.46)

kakku
Posts: 6
Joined: Mon Aug 03, 2009 3:02 am

Re: A setting to round the numbers off.

Postby kakku » Mon Aug 03, 2009 10:01 pm

use a grid and snap to that while drawing.
that works for me. ;)


Return to “Help with using Inkscape”