Skip to main content
Solved

Setting the digits after the decimal point

  • Nov 8, 2021 4:14 PM UTC
  • 4 replies
  • 1368 views
  • Translate All

when I create a custom screen by default I can enter only 2 digits after the decimal point how I can modify this parameter so that we have 3 digits after the decimal point

Best answer by Django

I think you can do this:

[PXDBDecimal(4)]

And then you might need to remove the field control and re-add it to the form.

View original

4 replies

Forum|alt.badge.img+8
  • Captain II
  • Nov 9, 2021 4:00 PM UTC

What does the DAC field definition look like?

Translate

  • Author
  • Freshman I
  • Nov 9, 2021 5:23 PM UTC

DAC field definition

Translate

Forum|alt.badge.img+8
  • Captain II
  • Answer
  • Nov 9, 2021 5:25 PM UTC

I think you can do this:

[PXDBDecimal(4)]

And then you might need to remove the field control and re-add it to the form.

Translate

Naveen Boga
Captain II
Forum|alt.badge.img+20
  • Captain II
  • Nov 9, 2021 6:44 PM UTC

Yes,  I concur with ddunn.

If you wanted to display 3 decimals, you need to decorate your DAC attribute with [PXDBDecimal(3)]

 

PXDBDecimal(Precision) → Since this is your custom screen and custom field, also make sure that you need provide precision value for the database field as well.

Translate