Prec-func
The prec(x, p) function returns a value (or a dataset) x with n significant figures.
double prec(double x, int n)
x
n
Returns a value (or a dataset) x with n significant figures.
Single Number
// This script returns the value 1.23E6 for n. x = 1234567; n = prec(x, 3);
Dataset
// In this example, the values in data1_C are assigned // to data1_B to 3 significant figures. Col(B) = prec(Col(C), 3);
nint, round