Home > database >  Pb data window how to give up after the decimal point mantissa
Pb data window how to give up after the decimal point mantissa

Time:09-19

Pb data window to give the mantissa of decimal places, for example, the result is 12.56, want 12

CodePudding user response:

Adjust the dw dataobject object column attributes of the

Adjust the format attribute, is changed to # # # # # # 0

CodePudding user response:

A decimal ldc_num
Int li_num
Ldc_num=12.56
Li_num=truncate (ldc_num)

CodePudding user response:

Li_num=truncate (ldc_num, 0)

CodePudding user response:

Actually give up or don't show?

CodePudding user response:

reference 1st floor NorthStar21 response:
adjust dw dataobject object column attribute

Adjust the format attribute, is changed to # # # # # # 0



1st floor, but if it is at the same time does not enter the decimal part set editmask would be better, abandon or will be put into the format, at the same time will round the display

CodePudding user response:

1 set the decimal format to leave
2 the original number minus 0.5
  • Related