Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Round nth multiple


  • Please log in to reply
No replies to this topic
Leo Xiong
  • Members
  • 140 posts
  • Last active: Mar 15 2014 06:42 AM
  • Joined: 13 Apr 2010

Maybe someone will find this useful...

Function

roundnthMultiple(number, multiple){
	return Round(number / multiple) * multiple
}

Usage

MsgBox, % roundnthMultiple(6, 15)

gplus-16.pngLeo Xiong.com
#ahk freenode - catch me there as NameLess-exe!