Post Reply 
Display numbers in MsgBox with groupings
04-09-2021, 06:10 PM
Post: #1
Display numbers in MsgBox with groupings
I would like to display the numerical output in MsgBox with digit groupings.

for e.g. when I do
x:= 1000000;
MSGBOX("value of x "+ROUND(x,2));

I would like the output to display 1'000'000 instead of 1000000.
Find all posts by this user
Quote this message in a reply
04-09-2021, 06:30 PM
Post: #2
RE: Display numbers in MsgBox with groupings
You can use: MSGBOX("value of x "+STRING(ROUND(x,2),0,-1,1))

See the STRING help for more details.
Find all posts by this user
Quote this message in a reply
04-09-2021, 06:53 PM
Post: #3
RE: Display numbers in MsgBox with groupings
(04-09-2021 06:30 PM)Didier Lachieze Wrote:  You can use: MSGBOX("value of x "+STRING(ROUND(x,2),0,-1,1))

See the STRING help for more details.

Thanks very much. It worked.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)