MS Access and number of decimal places returned in calculations -


this not formatting question.

i have found doing simple division in ms access (2010) query not return expected number of digits. simplest: (3.1 + 3.1)/2 = 3.1

but ms access returns 3.09999990463257

yes, can round and/or format result show specified number of decimal places. also, in example above, rounding give me true value of 3.1; however, question "why ms access this?" rather how fix it.

both

select (3.1+3.1)/2 result tblfoo 

in query, and

debug.print (3.1 + 3.1)/2 

in vba return 3.1 me.

are summing values of data type single? have limited precision.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -