floats
i talked to mark thinking this would be a quick easy question....
ok. in that case i'll ask in a thread. i'm adding two feilds to the statistics: 'past votes total' and 'past vote count'
since votes range from 1 to 10 inclusive in .5 increments, there's a need for a float.
this is so that i can reset the votes, because one of the complaints i've heard about other places is that people can only vote once, another one is that one place it's once a day and the downvoters seem terrible there, so i figure once a month resetting the vote table would be a happy medium)
i need to use a float for that, but i don't know how many spaces a float can have. i don't se anything on the site and the book says it can be a number like 1.175494351e+38 but i don't know if they mean 10 spaces total or 48 (38 plus the ten shown)
POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.
Suzanne posted this at 16:43 — 8th September 2003.
She has: 5,507 posts
Joined: Feb 2000
... have you not taken math? e+38 is the exponent.
m3rajk posted this at 00:34 — 9th September 2003.
They have: 461 posts
Joined: Jul 2003
iknow a scientific notation, but i don't know if that was oreilly shortening it or if it can take that many places.
Suzanne posted this at 13:28 — 9th September 2003.
She has: 5,507 posts
Joined: Feb 2000
That's a different question, gotcha. And one I can't answer. From what it reads, you can have the regular ten digits plus the exponent information, or 15 characters, however, when it says it handles large numbers, I don't know if that means you can put Pi into it, for instance...
So, I don't know.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.