Hi , in my application/use of PI, I need to store the significant digits after the decimal place regardless if it is 0s or not.

e.g I need to receive and store a float value "3.000" and "2.0" exactly the way they are and not just "3" or "2". Is this possible? The Display digits is only a rendering mask to specify the # of digits to display before and after decimal place, meanwhile the original value stored in the tag has already truncated the trailing 0s after decimal place.

Please help.

Thanks,

Ben

Hi Ben,

I think that you might misunderstand floating point numbers. 1.0 and 1.00000 is exactly the same.

What PI does is to offer different ways to show the value depending on the tag and the client. You've read about significant digits or decimal places in the Pi Admin manual. This is exactly what it is meant for.

If for your purposes 1.0 and 1.000 are different (i.e. the implied precision of your measurement) and this value is dynamic (will change over time), the best way I think is to have a second tag that stores the precision, but you will have to interpret that in your client application (e.g. in DataLink you could fetch the number of significant digits and use that in a format formula).

Please let me know if I've misunderstood your problem.

Cheers,

Rob