Hello Team,

Good day !!

I have observed a strange behavior of System Explorer in designing analysis. Details are as below.

You can see in below snip that the ‘Input Value’ attribute has the value with 6 decimal values (Figure 1).

Figure 1: attribute value with 6 decimals

When we multiply this attribute value with 100 the output should have been 30383.1543 but surprisingly the output value does not contain any decimal values as shown in below snip(Figure 2, Variable 1)

Figure 2: Analysis

Then, I tried some analysis functions like format(converts float values to string with required number of decimals as used in variable 2) and float functions (convert string into float back decimals as used in variable 3).

Unfortunately, while converting string back to float(Variable 3), it again gave me just 2 decimal values though it has many decimals further(variable 2 output).

However, we can achieve as many as decimals we want in the output by mapping the output attribute and making the display digits negatively bigger number till -20, but this would not be an ideal approach. We cant have every single variable mapped to an attribute unnecessarily.

Not sure if this is the limitation of System Explorer.

Current version used : PI System Explorer 2018 SP3

Request you kindly to let me know if you have any better approach in achieving the above requirement.

Best Regards,

**Basavakumar Jigalur**

You are confusing displayed digits with stored digits. Your Variable1 is a floating point number and it does indeed have decimals. However, the default DisplayDigits is -5, so PI System Explorer will only show you the 5 most significant digits, which coincidentally happens to be the whole number portion. The decimals are still there but are being suppressed in the display.

To see for yourself, you may try:

Variable4 Variable1 - Trunc(Variable1)To illustrate more, you could also try:

Variable5 'Input Value'and you will note that the display will be 303.83 instead of 303.831543.

Your 'Input Value' is a Single in PSE, which is a Float32 in the PI Data Archive. According to IEEE 754, a Single has

at best7 significant digits. However, whenever you perform any mathematical expression upon in that value in Analytics, the value will be cast to a Double. Though a Double can have up to 15 significant digits, the mere act of casting a Single to a Double does not magically increase the significance of the original Single value.