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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:36:46+00:00 2026-05-20T06:36:46+00:00

I am reading a C book. In the Arithmetic Expression section, they say: Division

  • 0

I am reading a C book. In the Arithmetic Expression section, they say:

“Division typically uses more resources.  To avoid division, we multiply rather than divide. For example, we multiply by 0.5 rather than divide by 2.0.”

Why Division typically uses more resources?. Can anyone give me a detail explanation, please?

Thanks a lot.

  • 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-20T06:36:46+00:00Added an answer on May 20, 2026 at 6:36 am

    Binary Multiplication is simple using the peasant algorithm – you basically shift, then sum: http://en.wikipedia.org/wiki/Multiplication_algorithm#Peasant_or_binary_multiplication

    Binary Division is much harder, as it’s a sequence of subtractions (like long division you may have done in school). The main algorithm class is called ‘radix’, which you can see an example of here: http://www.bearcave.com/software/divide.htm

    Remember though – measure first, then optimise. It’s much easier to maintain code that matches the problem domain than code that is already optimised.

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

Sidebar

Related Questions

Reading a book on Entity Framework and they say that LINQ is only available
I've been reading K & R's book on C, and found that pointer arithmetic
I'm reading the book Algorithms and they mentioned a data type Item . However,
While reading a book on C#, I have come across code that uses the
I am reading one book about JUnit now and writer advises nulling resources in
Recently, I was reading book about Erlang which has hot deployment feature. The deployment
Reading a book I have found the following statement: (Object) Behaviors answer either of
While reading a book about JavaScript I stumbled across an example: var names =
I'm reading this book on C# and .NET and I'm learning a bunch of
I've been reading a book which is in C#. I'm a VB.NET developer (and

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.