Hi, Need to implement some rounding functions for an arbitary least significant digit/s ( 50 or less ). = For example: round to 50,5,2 etc. I.e. round to 50: input =3D 125 -> output =3D 150 input =3D 24 -> output =3D 0 = round to 5: input =3D 3 -> output =3D 5 input =3D -12 -> output =3D -10 etc... Need an general routine to use like output =3D round(input,X) there X is the digit to round to. ( in asemmbler ofcource :) ) X can be in the range 1-50, input and output probably 24 bits *signed* :). Any clever implementations out there ? /Tony Tony K=FCbek, Flintab AB = =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2 E-mail: tony.kubek@flintab.com =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2=B2= =B2=B2=B2=B2=B2=B2=B2=B2=B2=B2 -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics