G
Gustaf Liljegren
I searched for previous answers on this, but couldn't find something
fitting. I need advice on how to store decimal numbers with possible
null values in memory. The numbers may be negative, so storing null
values as -1 doesn't work. The numbers are amounts of money, so
decimal is the best datatype, except that it can't store null values.
The best idea so far is to make an object of each number and have it
store either a decimal or null. It's not pretty, but I think it would
work. Can anyone find something more straightforward?
Thanks,
Gustaf
fitting. I need advice on how to store decimal numbers with possible
null values in memory. The numbers may be negative, so storing null
values as -1 doesn't work. The numbers are amounts of money, so
decimal is the best datatype, except that it can't store null values.
The best idea so far is to make an object of each number and have it
store either a decimal or null. It's not pretty, but I think it would
work. Can anyone find something more straightforward?
Thanks,
Gustaf