You need to be aware that the formatted display of a field is not the same as the value of the field.
You need to round the result of the computation. Be aware that the Math.round method is designed for integers and not floating point numbers.
var Field1 = this.getField("field1").value;
var Field2 = this.getField("field2").value;
var nResult = Field1 * Field2 / 1000;
console.println("field1 * filed2 / 1000 = " + nResult);
console.println("formatted and rounded value of field1 * filed2 / 1000 = " util.printf(%,0 3.0f", nResult));
Be aware that the Math.round method is designed for integers and not floating point numbers.
You've stated this a number of times and I'm confused by it. Can you provide more information or a link that presents its claimed deficiencies?
Yes, it doens't really make much sense to me, either... What would be the point of running a round command on an integer? Its entire purpose is to convert floating point numbers to integers, no?