Discussion

Truncate to 2 digits after decimal

Hi,

I am having a decimal value stored in a property, but finally need to restrict decimal value to 2 digits after dot(.) into that property.

Any ideas please.

Thanks Kumar

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

June 23, 2010 - 3:22am

Add qualifier "pyDecimalPrecision" to the property and set it's value to "2".

June 23, 2010 - 4:01am

Yep !

Got it and worked

Thanks Much :)

December 24, 2014 - 2:12am

for me its not working...

November 13, 2016 - 12:28pm

it's Working..

Thank you soo much..

November 14, 2016 - 3:45pm

@SPSUJITMCA

 

This needs to  be set on the Property's "Advanced" tab