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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:53:46+00:00 2026-05-25T14:53:46+00:00

i am working on a app where the user can store a temperature. he

  • 0

i am working on a app where the user can store a temperature.
he can choose between celsius / fahrenheit

now my question is, whats the best way to save the value?
IN a complete own format or as fahrenheit, rather celsius?

Just because
91.45F & 91.46F are both 33.03C so would not make sense
to save in Celsius..

I am not a math prof. and don’t know what other probs could appear.
So i just like to ask if someone has experience how to go around
any possible problem. I just like to save the value in a format so
i can be sure it will be always right recalculated what ever format
the user wish and entered before.

edit:
the User Input is just 2 values after Comma!
edit2:
till now it looks the best way seems to always convert the user input into fahrenheit and save that with a precision like 5 values after comma. any other idea. otherwise i would soon close that topic 🙂

  • 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-25T14:53:46+00:00Added an answer on May 25, 2026 at 2:53 pm

    Expanding on what Matt Ball said, you need to remember that if you are doing any calculations on the stored number (besides simply retrieving it), it is best to store it as an integer value, rather than a floating point number. So, if you need precision to the hundreds place, store the captured value as something like temp = captured_value * 100

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

Sidebar

Related Questions

I'm working on a text editor iPhone app where a user can type and
I'm working on an app that requires no user input, but I don't want
I'm working on an app that needs to accept a RegEx from the user,
i am working on a simple web app which has a user model and
I'm working on a WinForms app and I have a user control in it.
I'm working on a Silverlight app that would allow a user to upload a
I'm working on an iPhone app that offers the user the opportunity to send
I'm currently working on a reasonably simple MVC app which allows the user to
In an iPhone app I'm working on, the user needs to enter some configuration
I am developing a backup/restore system for my app in which the user can

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.