Jump to content

Storing Float number in SQL


'LinKin

Recommended Posts

  • Moderators
Posted

According to this doc, it should be possible to store float numbers in columns of type REAL. Never heard of it untill now though. If it doesn't work, then use the solidsnake's solution

.

Posted

Another solution might be, to multiply by 100 to get rid of decimals (assuming there are 2) before saving and dividing by 100 when working with it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...