Hi.. In Database, we have a float value like "45.5", and in UI it has

Hi.. In Database, we have a float value like "45.5", and in UI it has to be displayed as "45.50". Is there a way to do this?

OriginalPostID-156978

OriginalPostID-156978

  Discussion posts and replies are publicly visible

Parents
  • For decimal, please use fixed() to convert your text. Please note that the significant digit for decimal is only 15 digit.
    In SAIL form, we have create a common SAIL interface component for inputting amount, it will
    - Accept the input as text
    - Use todecimal() to convert inputted to decimal
    - Control the amount range if it is number
    - Convert the input back to text using fixed() with predefined decimal point
Reply
  • For decimal, please use fixed() to convert your text. Please note that the significant digit for decimal is only 15 digit.
    In SAIL form, we have create a common SAIL interface component for inputting amount, it will
    - Accept the input as text
    - Use todecimal() to convert inputted to decimal
    - Control the amount range if it is number
    - Convert the input back to text using fixed() with predefined decimal point
Children
No Data