Formatting Decimal (money) to two Decimal Places

Stimulsoft Reports.NET discussion
Post Reply
User avatar
jp2code
Posts: 20
Joined: Thu Feb 11, 2016 9:10 pm
Location: Longview, TX [USA]

Formatting Decimal (money) to two Decimal Places

Post by jp2code »

My Decimal datatype values are printing fine, but they are running out to 4 decimal places.

How do I specify that I only want to display 2 decimal places? Other values, for whatever reason, are showing no decimal places.
getgreenshot_org.jpg
getgreenshot_org.jpg (170.65 KiB) Viewed 14865 times
~Joe
User avatar
jp2code
Posts: 20
Joined: Thu Feb 11, 2016 9:10 pm
Location: Longview, TX [USA]

Re: Formatting Decimal (money) to two Decimal Places

Post by jp2code »

Found it!

Code: Select all

Round(value,2)
Sorry for the trouble. :)
~Joe
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Formatting Decimal (money) to two Decimal Places

Post by HighAley »

Hello, Joe.

Yes, you could use Round function or Text Format property.

Thank you.
Post Reply