jai_kumar2
(jai kumar)
1
iam extracting minimum value from the table using this

but iam getting value in roundof like lets say from the below list the minimum value is 110.011

but the variable output is 110
can someone help me to get value with upto 3 decimals
Thanks in advanec
Hi @jai_kumar2 ,
Instead of CInt , use CDbl in the expression.
CDbl(row(0))
Let us know if it doesn’t work.
jai_kumar2
(jai kumar)
3
Thanks it Worked
But, iam getting like this “110.0118375905” as variable value
any possibility to get like this upto 3 decimal “110.011”
@jai_kumar2 ,
Try the below :
Math.Round(CDbl(row(0)),3)
@jai_kumar2 ,
In the expression itself.
dtRow.AsEnumerable.Min(Function(row)Math.Round(CDbl(row(0)),3))
Gokul001
(Gokul Balaji)
8
Hi @jai_kumar2
How about this expression
dtRow.AsEnumerable.Min(Function(r) r(0).ToString.Substring(0,r(0).ToString.IndexOf(".")+4))
Regards
Gokul
jai_kumar2
(jai kumar)
9
Thank you all for your fast response
Regards
Jayakumar
Gokul001
(Gokul Balaji)
10
@jai_kumar2
In this expression the result would be like in below. Can you confirm that your output needs like the below one.
Input value will round of
Input → 110.0118375905
Output → 110.012
Regards
Gokul
system
(system)
Closed
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.