Note that there are some explanatory texts on larger screens.

plurals
  1. POWill Decimal or Double work better for translations that need to be accurate up to .00001?
    primarykey
    data
    text
    <p>I'm an inspector at a machine shop. I have an html report generated by another inspector that has some problems I need to fix. This isn't the first time: I need something better than <code>PowerShell</code> and <code>RegEx</code>. (Fear not internet warriors, I know I shouldn't use <code>RegEx</code> for html. I'm using <code>HtmlAgilityPack</code> now.)</p> <p>I'm aware there are a lot of similar discussions on SO and on the internet in general. I didn't find anything quite this specific. I can write some small experiment apps to test some of this (and I plan to) but, I want to have some idea of if it will be future safe before I implement all of it. Even though I'm not a programmer by trade I have a good grasp of the concepts we're talking about; Don't worry about talking over my head.</p> <p>Over a series of transformations is it likely I will have more than .0001 error? What about .00001?<br> -If a report's alignment is off, I may need to rotate and translate it multiple times.<br> -I've only implemented rotation and translation at this time but, I plan on adding more transformations that may increase the number and complexity of operations.<br> -The integer component can go into the thousands.<br> -Our instruments are certified to .0001 typically. Normal significant digit rules for scientific measurements apply.</p> <p>Will the overhead of <code>Decimal</code> and writing the trig functions manually be incredibly time consuming (edit: at runtime)?<br> -Typically a report has 100 to 100 points. Each point is actually 2 points: <code>Nominal</code> (as modeled) and <code>Actual</code> (as measured.)<br> -Easiest to test, but I want to know before implementing math functions for Decimal.</p> <p>Side question:<br> I have a point class, <code>Point3D</code>, that holds <code>x</code>, <code>y</code> and <code>z</code>. Since each data point is two of these (the <code>Nominal</code> and <code>Actual</code>.) I then have a class, <code>MeasuredPoint</code>, with two <code>Point3D</code> instances. There has to be a better name than <code>MeasuredPoint</code> that isn't annoyingly long.</p> <p>Oh yeah, this is C#/.Net. Thanks,</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload