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 8004155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:50:32+00:00 2026-06-04T16:50:32+00:00

The code: double indSRate[] = new double[c.getCount()]; indSRate[e++] = c.getDouble(c.getColumnIndex(s_rate)); if (String.valueOf(indSRate[s]) == null)

  • 0

The code:

double indSRate[] = new double[c.getCount()];
indSRate[e++] = c.getDouble(c.getColumnIndex("s_rate"));


if (String.valueOf(indSRate[s]) == null) {
    Log.d("Special Rate", String.valueOf(indSRate[s++]));
}

The field in the s_rate column was left blank by the user in an edit text field. Am I somehow turning it into a double?

Inside of a loop, I want to do certain things if the field was empty, and other things if it is not. But it seems to be either 0 or greater? I can’t test it being “0” or something different. I HAVE to test between isEmpty or not?

  • 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-06-04T16:50:33+00:00Added an answer on June 4, 2026 at 4:50 pm

    If the internal representation of a value is NULL and your query requests a FLOAT, you get 0.0 as the return value (see this document).

    If you don’t want NULL values for that column in your Cursor, specify that in your query. If you don’t want NULL values in your database, specify that with a column constraint when you create the table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following code where I am returning double& and a string& . It
I have the following code: double f = (1500 / 3000); MessageBox.Show(string.Format({0:F2},f)); I expect
I have this line of code: double seconds = new DateTime(2006,7,6,12,1,0,DateTimeKind.Local).Subtract(new DateTime(1970,1,1,0,0,0,DateTimeKind.Local).TotalSeconds; This was
I have the following line of code: double *resultOfMultiplication = new double(*num1 * *num2);
I have this in my code: double** desc = new double* [size_out]; for (int
Code double timeout_in_hours = 6.0; MyDataContext db = new MyDataContext(); using (TransactionScope tran =
I'm using Visual C++ 2008 Express Edition and when i debug code: double x
50\% of my simulation time is spent on the following code: internal double simWithdrawalFast(double
I'm reading some C code like that: double function( int lena,double xa,double ya, double
I have the following code that takes a double value and converts it to

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.