Skip to main content
Waters

Truncating Numbers in Custom Fields in Empower - Tip229

Article number: 201067

OBJECTIVE or GOAL

How to truncate numbers in a Custom Field

Empower Tip of the week #229

ENVIRONMENT

  • Empower

PROCEDURE

STEP 1
Figure 1 is a summary of the syntax used for the Custom Fields used to truncate numbers either to the left or the right of the decimal point (figure 1).


Figure_1.png

STEP 2
In the first example, you want to truncate the USP signal to noise ratio (s/n) to the second number to the right of the decimal point (figure 2).
 

Figure_2.png

STEP 3
Create a Custom Peak field, ‘Data Type Real’ (figure 3).


Figure_3.png

STEP 4
The result is a truncated value of the USP signal to noise ratio (s/n) (figure 4).


Figure_4.png

STEP 5
In the second example, you want to truncate Peak Area to the second number to the left of the decimal point.  Peak Area is a real number, however, Empower defaults to displaying Area as a whole number.

Figure_5.png

STEP 6
Create another Custom Peak field, ‘Data Type Real’ (figure 6).


Figure_6.png


STEP 7
The result is a truncated value of the Peak Area (figure 7).


Figure_7.png

It’s that easy!


 

ADDITIONAL INFORMATION

Final Note: You can use either the Pro or QuickStart interface for this tip.

Not able to find a solution? Click here to request help.

  • Was this article helpful?