Page 1 of 1

Rounding in PX

Posted: Fri Jun 29, 2007 6:00 am
by kd813
I have a decimal input and wanted to round it to one decimal place
ie if input is 2.34 output should be 2.3
ans if IP is 2.19 OP should be 2.2

Kindly provide a solution as to how to acgieve this

Posted: Fri Jun 29, 2007 8:53 pm
by ArndW
you can use any of the conversion functions that have an rtype attribute and choose the rounding method of nearest in order to do that for you.