Add dots to number

Get help with using AutoHotkey and its commands and hotkeys
blue83
Posts: 45
Joined: 11 Apr 2018, 06:38

Add dots to number

05 Oct 2018, 03:07

Hi,

Does anyone knows how to convert this number 123456789 into this 123.456.789

Thanks
blue83
Posts: 45
Joined: 11 Apr 2018, 06:38

Re: Add dots to number

05 Oct 2018, 03:49

Thank you all, but I found a way

https://autohotkey.com/board/topic/9009 ... er-format/

Code: Select all

num := 100000
msgbox % KSep(num)

KSep(x, d=2, s=".") {
	return RegExReplace(round(x,0), "\G\d+?(?=(\d{3})+(?:\D|$))", "$0" s)
}

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], flyingDman, Google [Bot], Gully, RickC and 54 guests