Hi, I’m trying to follow the “AWDR” example of storing certain types of
numbers (in my case, percentages not money) as integers in the
database. I understand from the Depot application how to format the
output to have 2 places (or n places for that matter) decimal.
Now, I"m wondering about the input. It’s more natural for people to
enter numbers as “11.23” if that’s what it means rather than 1123.
What’s the correct way to fix this? Should I read the numbers as
entered by the user and multiply by 100 and type cast to integer (ouch,
my C programming is showing)