Decimal calculation

Hi All,

I am having one use case where I want to store decimal value.

But when I enter amount like 10.10 in decimal type field , it is returning 10.1 when I click outside because it is decimal type value.

I want same value as user entered. e.g If I entered 10.10, value should remain same 10.10 not 10.1.

 

Please leave your suggestion to achieve this.

 

Thanks,

Vinod Tate

  Discussion posts and replies are publicly visible

Parents
  • Hi Vinod,
    As suggested by Thasneem, if you want to retain the decimal value as it is, Use text field with proper validations to restrict user from entering Alphabetical and Special characters. This should work fine if you want to use the value only for display purpose.

    Where as this approach will not suggestible if you want to do any comparisons or calculations with that decimal value(for calculations again you need to convert it to to decimal, same issue will occurs)

    Thanks,
    Sindhu
Reply
  • Hi Vinod,
    As suggested by Thasneem, if you want to retain the decimal value as it is, Use text field with proper validations to restrict user from entering Alphabetical and Special characters. This should work fine if you want to use the value only for display purpose.

    Where as this approach will not suggestible if you want to do any comparisons or calculations with that decimal value(for calculations again you need to convert it to to decimal, same issue will occurs)

    Thanks,
    Sindhu
Children
No Data