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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Percentages

Status
Not open for further replies.

Muzzy

Programmer
Dec 14, 2001
68
GB
I am adding percentages to a table but when I enter 0.45 it keeps rounding it down to 0.00% and when I put in ).55 it6 round it up to 100% this is no good as I want it to display 55%, can anyone please help?

Cheers

Muzzy.
 
hi

what type do you have for the field, longinteger or integer by any chance?

integers cannot have decimal places, try changing to single or double Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Cheers, I knew I must have been missing something pretty obvious.

Muzzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top