// Last edited on 2020-03-24 22:49:50 by jstolfi #macro round_to_int(xx) // Rounds {xx} to nearest int. #local yy = floor(xx + 0.5); yy #end #macro round_to_half(xx) // Rounds {xx} to nearest half-int. #local yy = floor(2*xx + 0.5); (0.5*yy) #end