Skip to main content
Answer

GI field format

  • October 21, 2024
  • 3 replies
  • 151 views

Forum|alt.badge.img

I would like the value to display as a currency with 0 decimal places and comma separators.

However, when I used a formula like CInt(x), it still showed 1,111.00, so I would like it displayed as 1,111. I also created a new field decimal type (19,0) and selected it in the schema field, it still showed the same like1,111.00. Is there any suggestion? Thanks!

Best answer by darylbowman

If you’re writing code, [PXDBDecimal(0)] should work.

3 replies

darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • October 21, 2024

If you’re writing code, [PXDBDecimal(0)] should work.


Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • October 21, 2024

Hello,

It’s helpful to see your GI, at least a screenshot. If we know what tables you are using, or what type of data you are reporting, we can better recommend a schema field to use for numeric formatting.

Laura


Forum|alt.badge.img
  • Author
  • Freshman I
  • October 22, 2024

If you’re writing code, [PXDBDecimal(0)] should work.

It works! thanks a lot