To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 2821
2820  |  2822
Subject: 
Re: DAT file cleanup tools? or: Zero by any other name
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 14 Sep 1999 18:43:59 GMT
Viewed: 
413 times
  
They do hurt things.  When viewing dat's in ldlite via the web interface
parts with exponents do not render.  They do render when you load them
from a local file however.  I think MLcad is generating them.

KL

In lugnet.cad.dev, Todd Lehman writes:

Do any of the command-line DAT tools do cleanups on floating-point numbers?
I've noticed lot of lines lately with very-near-zero floating-point numbers,
like these lines, for example...

1 15 40 8 -20 -3.33067e-015 1 -3.33067e-015 0 -3.33067e-015 -1 -1 • -3.33067e-015 1.10441e-029 32014.DAT
1 15 -40 8 -20 -3.33067e-015 6.66134e-015 -1 0 -1 -6.66134e-015 -1 • -2.22853e-029 3.33067e-015 32014.DAT
1 15 -40 8 -100 -3.33067e-015 -1 0 -3.33067e-015 1.10441e-029 -1 1 • -3.33067e-015 -3.33067e-015 32014.DAT
1 15 40 8 -100 -3.33067e-015 1 -3.33067e-015 0 -3.33067e-015 -1 -1 • -3.33067e-015 1.10441e-029 32014.DAT

...which certainly don't hurt anything, but they could just as well (and
more cleanly perhaps) be written like this...

1 15 40 8 -20 0 1 0 0 0 -1 -1 0 0 32014.DAT
1 15 -40 8 -20 0 0 -1 0 -1 0 -1 0 0 32014.DAT
1 15 -40 8 -100 0 -1 0 0 0 -1 1 0 0 32014.DAT
1 15 40 8 -100 0 1 0 0 0 -1 -1 0 0 32014.DAT

Alternatively, a beautifier could also line up columns:

1 15  40 8  -20 0  1  0 0  0 -1 -1 0 0 32014.DAT
1 15 -40 8  -20 0  0 -1 0 -1  0 -1 0 0 32014.DAT
1 15 -40 8 -100 0 -1  0 0  0 -1  1 0 0 32014.DAT
1 15  40 8 -100 0  1  0 0  0 -1 -1 0 0 32014.DAT

I seem to remember a beautifier being talked about once upon a time...

Curious,
--Todd

p.s.  http://www.lugnet.com/cad/dev/?n=2819



Message has 2 Replies:
  Re: DAT file cleanup tools? or: Zero by any other name
 
(...) I haven't had any problem with MLcad in this respect. Possibly LeoCAD? Duane (...) (25 years ago, 14-Sep-99, to lugnet.cad.dev)
  Re: DAT file cleanup tools? or: Zero by any other name
 
(...) Not in and of themselves, they don't. Only where there's a bug in interpreting them, which there was. (...) Did you read the "p.s."? :-) (...) (25 years ago, 14-Sep-99, to lugnet.cad.dev)

Message is in Reply To:
  DAT file cleanup tools? or: Zero by any other name
 
Do any of the command-line DAT tools do cleanups on floating-point numbers? I've noticed lot of lines lately with very-near-zero floating-point numbers, like these lines, for example... (...) ...which certainly don't hurt anything, but they could (...) (25 years ago, 14-Sep-99, to lugnet.cad.dev)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR