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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:39:40+00:00 2026-05-29T08:39:40+00:00

Sorry if it was already asked before, but I really couldn’t find a clear

  • 0

Sorry if it was already asked before, but I really couldn’t find a clear answer to this question.
Please, tell me, what is the fastest way of converting:

char * array to int
char * array to float

char * array stores a number, for example:

"12345"
"1234,56789"

If the fastest ways for x86 and x64 systems are different, please tell both of them.

EDIT: By “fastest”, I mean “the most efficient”, not “the most simple to use”.

  • 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-29T08:39:41+00:00Added an answer on May 29, 2026 at 8:39 am

    Start with atoi() and atof(), measure the speed, decide if it’s a problem – then look for a solution

    edit – it’s almost certain that the I/O will dominate any time spent doing the conversion. If the conversion time does matter (after you profile) then if you know the format ie. ints are always 4digits, floats always have 5 decimal places, you might be able to write a hand tuned routine that does better than the standard lib

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

Sidebar

Related Questions

I'm sorry if this question has been asked already, but I couldn't find it
Sorry if this question is answered already, but I didn't find a suitable answer.
sorry if this question has already come up but I couldn't find anything that
I'm sorry if this question has already been answered but I couldn't find it.
i'm sorry i've already asked for this but couldn't find a solution yet :(
Sorry if this question has already been answered but I can't find an answer.
I am sorry I have already asked this question on Superuser, but nobody answers
Sorry if already asked, but I can't find anything on this. I am moving
sorry I know this question was asked already but the solution doesn't work for
Sorry If something like this has already been asked, but I can't find exactly

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.