shumaker@cs.fsu.edu wrote:[color=blue]
> I see other posts where some say fields that will hold a number with
> leading zeros should be stored as text instead of numbers.[/color]
There are no numbers with leading zeroes. There are just numbers.
[color=blue]
> This is very inefficient though, as a string of digit characters takes
> up much more memory than a 32bit or even a 64bit int.[/color]
How many zeroes were you planning to store? Each one is likely to
require one byte.
[color=blue]
> Storing as a number still allows for formatting when displaying the
> number, correct?[/color]
Yes.
[color=blue]
> I am creating a table and would like opinions regarding this please.[/color]
Store numbers as numbers. It's easier to have an opinion when one knows
what you are trying to do and why.
--
--
Lyle
"The aim of those who try to control thought is always the same. They
find one single explanation of the world, one system of thought and
action that will (they believe) cover everything; and then they try to
impose that on all thinking people."
- Gilbert Highet