AutoHotkey Community

It is currently May 27th, 2012, 12:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: September 8th, 2008, 4:23 pm 
Offline
User avatar

Joined: August 4th, 2008, 1:22 pm
Posts: 244
Location: UK
Basically I have a program that gives out values in forms of 1's , 10's, 100's, 1000's, 10000's (Ten Thousand), 100000's (One Hundred Thousand), 1000000's (One Million), 10000000's (Ten Million), 100000000's (Hundred Million), and Billion's.. you can probably guess where this is going..

As you can see it gets hard to read values over 10 thousand, so what I want to know is - is there a expression that adds Commas in relative places?.. the values my program generates are within 0-Billion, so is there anything that can add the commars to help?

Thank's

|| Dabster ||


Last edited by Cephei1 on December 14th, 2011, 11:57 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2008, 4:41 pm 
Problem solved: :) RegExReplace - delimiter in larger numbers


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2008, 8:36 pm 
Offline
User avatar

Joined: August 4th, 2008, 1:22 pm
Posts: 244
Location: UK
Thanks Man, it solved it :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2008, 11:08 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Code:
Num := 12345678912345, VarSetCapacity( fNum,32 )
DllCall( "GetNumberFormat",UInt,0x0409,UInt,0,Str,Num,UInt,0,Str,fNum,Int,32 )
MsgBox, % Fnum


:)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2011, 3:30 am 
Offline

Joined: March 16th, 2011, 6:12 pm
Posts: 172
Location: Worcester, Massachusetts
It's surprising but using a RegEx is actually faster than that method. With AutoHotkey at least

_________________
★★★ Email me at berban at aim full stop com ★★★


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group