Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4565974
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:43:16+00:00 2026-05-21T18:43:16+00:00

well, maybe this is a simple question for you, but for a newbie like

  • 0

well, maybe this is a simple question for you, but for a newbie like me it’s kinda confusing

okey, I try to get a maximum value from an array, here’s my code

int sample = input.GetLength(0);
double maxValue = double.MinValue;  

for (int i = 0; i < sample; i++)
            {
                for (int j = 0; j < 6; j++)
                {
                    if (value[i][j] > maxValue)
                        maxValue = value[i][j];
                }
            }
    SetText(textBox1, maxValue.ToString());

And here is my number

10192 20351 30473 40499 50449 60234 
10192 20207 30206 40203 50205 60226 
10192 20252 30312 40376 50334 60252 

but when I showed it, the number is wrong. or weird for me.
instead like 60234

it showed 1.0612312312E-308 something like that.

is it my code wrong or there’s something missing?

thanks for any help anyway.

EDIT

VALUE is

the number with jagged array indexing

so it’s based on row and column like

value[0][0] for 1st row and 1st column so on.

what I want to do is search in all indexed array and show the maximumvalue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:43:17+00:00Added an answer on May 21, 2026 at 6:43 pm

    I should do this:

    double maxValue = double.MinValue;
    for (int i = 0; i < value.GetLength(0); i++)
    {
        for (int j = 0; j < value.GetLength(1); j++)
        {
            if (value[i][j] > maxValue)
            maxValue = value[i][j];
        }
    }
    SetText(textBox1, maxValue.ToString());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, maybe it is a stupid question, but I cannot resolve this problem. In
Ok, so this may seem an elementary question. Maybe it is. But for the
Hey this may be a somewhat simple question, but I'm new to Eclipse and
Ok, maybe this is the dumbest question ever but I really can't understand what's
This may be a fairly simple question, but my goal here is to redirect
Ok, this may be a simple question, maybe I am thinking about this all
I'm not too great with jquery and maybe this title doesn't explain too well
Well, I'm learning Scala so this question may be too basic for most people.
well i have a configuration like this in the components part of my config
There's probably a Google search that'll answer this question but for the life of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.