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

  • Home
  • SEARCH
  • 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 8722531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:26:28+00:00 2026-06-13T07:26:28+00:00

parseInt(‘bcedfg’,16) Base on this code I am getting 773855 in a JavaScript, I go

  • 0
parseInt('bcedfg',16)

Base on this code I am getting 773855 in a JavaScript,

I go through the conversion table , and not sure how to get this “773855” value

my question is how parseint come out with this “773855” value , because I wanted to translate this tiny code in to a c# code , and is that any similar way in c# allow me to get this “773855” value

  • 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-13T07:26:29+00:00Added an answer on June 13, 2026 at 7:26 am

    Use Convert.ToInt32:

    Convert.ToInt32(theString, 16)
    

    It uses this overload:

    public static int ToInt32(string value, int fromBase)
    

    Note that you will get FormatException because of the g in the string:

    FormatException
    value contains a character that is not a valid digit in the base specified by fromBase. The exception message indicates that there are no digits to convert if the first character in value is invalid; otherwise, the message indicates that value contains invalid trailing characters.

    MSDN

    You’re not getting error in javascript as js tends to "forgive" too much errors, this one one of those examples.

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

Sidebar

Related Questions

I stumbled upon this issue with parseInt and I'm not sure why this is
if(str.contains(final)) { id = Integer.parseInt(str.substring(18, str.length() - 6)); } System.out.println(id); This line of code
Javascript's parseInt function does not seem to completely work. parseInt(01) returns 1 parseInt(02) returns
I'm getting a NumberFormatException on the Integer.parseInt() method. I know this exception is produced
Why does this part of code fail: Integer.parseInt(11000000000000000000000000000000,2); Exception in thread main java.lang.NumberFormatException: For
Possible Duplicate: Workarounds for JavaScript parseInt octal bug Given this script: <script type=text/javascript> var
Given the following JavaScript class definition: var Quota = function(totalMinutes){ this.totalMinutes = parseInt(totalMinutes ||
Possible Duplicate: Workarounds for JavaScript parseInt octal bug well i have this http://jsfiddle.net/gMDfk/1/ The
I have this code: function get_id_from_coords (x, y) { x = parseInt(x); y =
Possible Duplicate: JavaScript: why does parseInt(1/0, 19) return 18? Why does parseInt(1/0, 19) evaluate

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.