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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:37:59+00:00 2026-05-24T02:37:59+00:00

I have a value of: 2.54334881002458E-37 and i keep getting overflow exception when i’m

  • 0

I have a value of: “2.54334881002458E-37” and i keep getting “overflow” exception when i’m using a double.

what should i use to make this work?

Thank you

code snippet:

Dim curries, act, cat As Double
 For Each dataRow As DataRow In dt.Rows
            curries = dataRow("Activity")

getting the error when i try to assign Activity to curries.

but “activity” is a string in the database….

  • 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-24T02:38:00+00:00Added an answer on May 24, 2026 at 2:38 am

    Double is already 64 bits worth of floating point number.
    Can you post code where you are getting this overflow?
    Decimal might be worth a shot, but you have to post code so that we can understand the issues you are encountering.

    Based on your edit in your post, why are you storing numbers as strings in your database? That is a definite no no…unless you are not doing any sort of arithmaetic operation only then can you store them as varchar / string.

    Give us a sample of what the data looks like…I think your issue stems from not converting the string to a decimal, if activity is a string convert it using DirectCast or CType (cast the value):

    curries = CType(datarow("Activity"), Double)

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

Sidebar

Related Questions

I have a value int called score and i want to save this to
echo $_POST['time'].<br/>; echo $_POST['day'].<br/>; echo $_POST['year'].<br/>; echo $_POST['month'].<br/>; I have value store like this
How can i truncate the leading digit of double value in C#,I have tried
Check input tag which have value only as <br/> tag inside as value using
I have value as: james,adam,john I am trying to make it James,Adam,John (First character
I wrote this code for add attr to option element that have defined value
I have this: For Example: codincidenceSelected.id --> have value 1 int one --> have
I'm trying to use document.querySelectorAll for all checkboxes that have the value attribute set.
i have value in php variable like that $var='2.500000550'; echo $var what i want
I have a question, I have value as below which I set in an

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.