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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:06:16+00:00 2026-05-25T20:06:16+00:00

I am developing the calculator for android. I have implemented all the functionality, Now

  • 0

I am developing the calculator for android.
I have implemented all the functionality, Now just getting stop at the decimal value.
I dont know how to implement that functionality on the click of custom “.” button.
I want decimal value up to two fraction point.
can anybudy help me to develop such code?
I need it. . . I know it seem very easy but right now i got stuck in that matter.
Pleae help me in this
Thanks in advance.

  • 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-25T20:06:17+00:00Added an answer on May 25, 2026 at 8:06 pm

    As it is, this is a very broad question. I recommend you to check this http://www.codeproject.com/KB/android/androidcalculator.aspx

    Generally speaking, you need to:
    1) Implement UI
    2) Implement click handlers for the buttons
    3) Implement evaluation function

    If you get stuck at something particular ask it here and post your code.

    EDIT:
    There you can see how it is implemented, you can use similar logic:

        case DECIMAL_SEP: // Handle decimal seperator
            if (hasFinalResult || resetInput) { // if previous result is calculated or the input is reset, insert 0 before
                userInputText.setText("0.");
                hasFinalResult = false;
                resetInput = false;
            } else if (currentInput.contains(".")) // don't let 2nd '.'
                return;
            else
                userInputText.append("."); // append '.'
            break;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just been developing a postcode distance calculator for my Dads company, where
i am developing a simple calculator application in blackberry now, and i am new
I am developing an app using android OS for which I need to know
I am fresh to the iPad app development. Now I am developing a calculator.
Developing a website and just trying to get back into the swing of (clever)
Developing a project of mine I realize I have a need for some level
I'm currently developing my first android app, and my first game. I've been developing
I'm developing an iPhone application and I getting that warning at method: NSNumber *latitudeValue;
I am developing a Bill Of Materials cost calculator program and I am struggling
I'm beginner in Java Android developing. I'm using Eclipse SDK 3.6.1 version. I'm trying

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.