Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decimal question. Why doesn't this work.

Status
Not open for further replies.

Spyder1000

Technical User
Nov 2, 2004
109
US
I've got two fields in a detail section:
CSI and Total

Now my table has data like this:
CSI: 2.625
Total: 16

Multiplying 2.625 x 16 actually equals 31.50. However my field returns 32. Even when I set the format to standard with 2 decimals it still returns 32.

Any ideas?
 
Spyder1000
Isn't it the case that 2.625 x 16 = 42?

16 x 2 = 32
16 x .625 = 10

In any event, make sure that your table shows the data type as double and not Integer.

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top