Skip to main content
Answer

Setting the digits after the decimal point

  • November 8, 2021
  • 4 replies
  • 1270 views

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.

4 replies

Forum|alt.badge.img+7
  • Captain II
  • November 9, 2021

What does the DAC field definition look like?


  • Author
  • Freshman I
  • November 9, 2021

DAC field definition


Forum|alt.badge.img+7
  • Captain II
  • Answer
  • November 9, 2021

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.


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 9, 2021

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.