I can do this in the table, but would rather have ability in the labeling of the map.
Solved! Go to Solution.
RIck,
If you are after python specific code then you can use the str.format(), see examples here:
Rick,
Have a look at this article:
Make Numeric Labels More Readable
You could also use the FormatNumber function in vbscript:
http://www.esri.com/news/arcuser/1104/files/vbscript_label.pdf
Regards
Anthony
def makeMoney(n):
import locale
locale.setlocale(locale.LC_ALL, '')
S = locale.currency(float(n), grouping=True)
return S
from the google:
http://stackoverflow.com/questions/23428660/python-locale-currency-to-0-decimals
Hopefully helpful?
RIck,
If you are after python specific code then you can use the str.format(), see examples here:
A one liner (modified from code on Stack Overflow😞
"{:,}".format(int(value))