HP Forums

Full Version: Display numbers in MsgBox with groupings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You can use: MSGBOX("value of x "+STRING(ROUND(x,2),0,-1,1))

See the STRING help for more details.
(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.
Reference URL's