Announcements
No record found.
Dear Members,
I am now working on SSRS report in that the value of "Price" Column in Real data type. But i want to show that real data type in int for example instead of 7.66 shows 8 simple.
Thanks in Advance
*This post is locked for comments
Hi Shabir,
The only thing you can do, is use a round function, if the value is less than .5 the round function will be return 0, and if the value is higher than .5 the function will return 1. You need to use the function in your class that is mapping that field in the temporary table. The standard function:
static void Job1(Args _args)
{
int i, ii;
real r = 334.55, r2 = 334.14;
;
i = decround(r, 0);
ii = decround(r2, 0);
// It shows 335, 334
info(strfmt("%1, %2", i, ii));
}
You can use that example.
Thanks!
Hi,
Use " Round(2004.5, System.MidpointRounding.AwayFromZero) " expression or you can also use " string.Format("{0:#,###}",Round(Fields!dw_value.Value,0)) "
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
nmaenpaa 2 Moderator