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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:32:42+00:00 2026-05-28T04:32:42+00:00

I have a string, ‘0x000000000000090D’ that I am passing to a function. However, when

  • 0

I have a string, ‘0x000000000000090D’ that I am passing to a function. However, when I try to display it in an alert in the function, it has been converted it to 2317. Displaying it in an alert in the calling function displays it correctly.

var tagid = msg[post].TagID.toString();
alert(tagid);
ShowDetails(tagid);

function ShowDetails(tagid){
alert(tagid);
}

Why is it being converted, and what is it being converted in to so I can try to stop it?

Thanks!

  • 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-28T04:32:43+00:00Added an answer on May 28, 2026 at 4:32 am

    Please post your exact code. Somewhere, it is being treated as a number instead of a string, and you’re seeing the decimal representation (2317) of a hexadecimal number (0x90D).

    If you’re actually expecting this to be treated as a string, and if it’s in your source code, ensure that the value is surrounded by quotes.

    Otherwise, if this is a variable (assume x), you can somewhat get back to the hexadecimal format you showed:

    x.toString(16);
    

    However, this won’t provide all the additional 0-padding, resulting in (only) 90d. Some additional solutions for this, including with padding, are available at How to convert decimal to hex in JavaScript?.

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

Sidebar

Related Questions

I have: String.prototype.callcm = function(something[]){ alert(something); }; something.callcm({a:50,b:60}); how can the arguments with there
I have string that contains html . The html has several img tags in
I have string that I want to chop to array of substrings of given
i have string stored in python variables, and i am outputting a html that
I have: String uri = @drawable/myresource.png; How can I load that in ImageView? this.setImageDrawable?
I have string in which it has Date of type- 'mm-dd-yyyy'; I have to
I have string separated by dot ('.') characters that represents a hierarchy: string source
I've got a string that has curly quotes in it. I'd like to replace
I have string which i have to display in TextBlock, my TextBlock have some
i have string (uri) that i need to decode in c++ , its have

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.