Rounding off the number in linq

Hi Team, We want to round off numbers in linq. Is there any option to perform rounding off like by System.Math.Round(no, digit)

@manojdesai272 You can add System.Math as known type and use it in the template. For example see the following code:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("<<[System.Math.Round(pi, 2)]>>");

ReportingEngine engine = new ReportingEngine();
engine.KnownTypes.Add(typeof(System.Math));
engine.BuildReport(doc, 3.14159265359, "pi");

doc.Save(@"C:\Temp\out.docx");

Also, please see our documentation to learn more about known types.