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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:07:59+00:00 2026-06-04T20:07:59+00:00

I am creating a calculator, in which I need to give an option just

  • 0

I am creating a calculator, in which I need to give an option just like CASIO calculators, I mean I want to convert “1.5” into “3/2” or “2.5” into “5/2”

Explanation:

Textbox1.Text = 50

Textbox2.Text = 4


Dividing Textbo1.Text and Textbox2.Text
Calculate...........


Textbox3.text = 12.5 (Normaly)

but i dont need “12.5”
I want to Convert it into “25/2”

Please Friends Help me.

Thank you 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-06-04T20:08:01+00:00Added an answer on June 4, 2026 at 8:08 pm

    What you want to do is weird but it’s achievable. This might not be the best solution but it can help you – convert this into a function so you can use it later

    To make things easier, restrict to (n) decimal place(s) e.g. 1 d.p
    For the example you gave above, 50/4 = 12.5

    To achieve 25/2 then you’ll need this calculations
    get the integer part = 12
    get the decimap part = 0.5

    get the value after(.) = 5
    for 1 d.p, divider = 10, for 2 d.p divider=100, so we will use 10
    so we have 5/10. You have to check if 10 is divisible by 5 until [No more?] = 1/2
    then you have
    Your (12 x (bottom) + top) / bottom
    = (12×2+1)/2 = 25/2

    there could be other alternatives to this steps…

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

Sidebar

Related Questions

I'm creating a widget for which I need to calculate the minHeight and minWidth
I am working on an assignment creating a polynomial calculator which can perform addition,
I am creating application in Winform which among other things will also need to
I'm just creating a simple calculator in C# (windows form) I've created a User
I'm creating a calculator class and I want to be able to extend it
I'm creating a budgeting calculator and I'm at the point where I want to
I am creating a calculator application for all types of mathematical algorithms. However, I
I am creating a graphing calculator in Java as a project for my programming
I am creating a poker system and I am currently streamlining my hand calculator.
I'm creating a scientific calculator in C#, and I have a collection of linear

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.