Rounding to the nearest hundred
Posted: Fri Aug 12, 2011 1:47 pm
How can I round to the nearest hundred in the report writer?
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
decimal Round (decimal value, int decimals)
Rounds a decimal value to the nearest integer.
Parameters
value - A decimal number to be rounded.
decimals - The number of significant decimal places (precision) in the return value.
Return Value
The number nearest to a value with a precision equal to decimals. If the value is halfway between two numbers, one of which is even and the other odd, then the even number is returned. If the precision of value is less than decimals, then value is returned unchanged.
Please, try to use this expression:StephBell wrote:How can I round to the nearest hundred in the report writer?
Code: Select all
{Round(YourDataSource.YourTextField/100)*100}