Solved Which numeric format to use?

Gasman

Enthusiastic Amateur
Local time
Today, 09:59
Joined
Sep 21, 2011
Messages
17,501
Hi all,
I discovered a problem with my Diabetes DB.
I use a factor to multiply by the set value per 100g,100ml or Each.

However whan the value is small like 0.1g per 100g, I am getting zero.
I initially had the number as Single and 2 dec places.
I then tried Currency, but I do not want the £ showing.
Currently I am on Double, but if I enter 0.1 into the table, it just changes it to 0?

So what numeric format should I be using please?

Now changed to
1696784892259.png
 
Use Currency.

You can remove the pound sign in the format (in the table options)
 
That appears to have fixed it.

Thank you David.
 
Using double (or single) shouldn't change 0.1 to zero..
 
Not a biggy, but when I run a query that shows Factor * Carb/Sugar/Fibre I still get the £ sign, but not in my form?
I changed the numerics to Currency, format as Fixed and decimal places as 2.

1696791024287.png
 
Wow!, I have never ever set a format in a query. :(

Thank you David, learning something new all the time. :)

I had to Google to see how it was done.:)
 
True, but handy to know anyway.
This is just for my personal use, so not making it bullet proof or even pretty, just functional. :)
 
Speaking of using a calculator, it is important to know what KIND of calculator you are comparing against, since some of them are binary but some are BCD and thus round off differently for fractions. Can't remember exact model numbers, but back in my college days, some HP hand-held calculators were BCD internally. The one on your modern cell phone probably IS binary so would have similar rounding as your 'puter.
 

Users who are viewing this thread

Back
Top Bottom