Good Afternoon I am building a Water Quality field data sheet and I am hoping someone can help me out. Our water Quality crews go out and take up to 4 but not always 4 could be 3,2,or 1 measurements. After taking the measurements they perform a calculation to determine if the measurements are within 10% of each other. The calculation I have come up with is below. I am wondering how if there is a way to make it so the value returned is always positive. For example is the first measurement is 5.7 and the second is 6.2 the value returned is -8.403361344537814. I would like it to be returned as a positive number. I am also wondering if there is a way to control the number of decimal places that are returned.
(${secchi_depth} - ${secchi_depth_a}) div ((${secchi_depth} + ${secchi_depth_a}) div 2) *100
Thanks
Dan Senner