Function moved to twView
Should round nm before using it.