07-22-2016 01:40 AM
Hello,
I am trying to subtract an array of very small numbers from 1. The resulting output ends up rounding up as an array of 1s. I am expecting to get numbers very close to 1 (say 0.9999999997 for exampe) but not exactly 1. I have tried to ensure that both inputs to the numeric operator have the same type DBL/SGL etc. I have also tried scaling both inputs up and dividing after.
I know this must be easy but I dont have a ready solution 🙂 VI attached. I need both probes 64 and 65 to maintain a good number of precision digits. Thanks.
07-22-2016 02:21 AM
As you didn't store your "very small numbers" as default values, the attached VI doesn't show much except the code itself.
However, your numeric control/indicator is still in default configuration for showing 6 digits of precision. You might want to increase that in the controls/indicators property dialog to show e.g. 15 digits of precision.
Norbert
07-22-2016 02:38 AM
Increase the digits of precision
to get
Ken
07-22-2016 02:53 AM