can anyone tell me how can I get maximum value but no infinite ?
result = arr.Cast
Help me please
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Dec 19, 2014, 10:01 PM EST
result = arr.Cast
.Where(i => !double.IsInfinity(i))
.Max();
similarly you can get Min also.
Himha117 reputationPosted Dec 19, 2014, 10:03 PM EST
Your suggestion worked.
Shweta LodhaRank #31 · 39.8K reputationPosted Dec 19, 2014, 10:04 PM EST