How to round off value

Hello,

i am getting below value as output

i ned to restric to 98.9

how can i do this?
help me on same

Hi,

You can use the logic that is posted on this topic.

Hope it helps.

Thanks!

1 Like

@Mathkar_kunal

try Math.Round(98.5676767, 1, MidpointRounding.AwayFromZero)

output will be 98.6

Hey @Mathkar_kunal i am assuming you are reading the value from excel file and use for each row to iterate the value from the row one by one .so the value is in string format .so here’s the logic in the below screenshot.

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.