Subject:
|
DAT file cleanup tools? or: Zero by any other name
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Tue, 14 Sep 1999 18:21:03 GMT
|
Viewed:
|
386 times
|
| |
| |
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 1 Reply: | | Re: DAT file cleanup tools? or: Zero by any other name
|
| 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 (...) -3.33067e-015 1.10441e-029 32014.DAT (...) (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
|
|
|
|