Table Format

R

RA

I know I'm missing something simple, I can't get my table
to display a number in a decimal format. When I type
in .75 the table turns it into 1. OK, call me stupid,
what am I forgetting?

RA
..
 
A

Allen Browne

Open the table in design view, and select the problem field.
In the lower pane, change the Field Size property to Double.

The integer types can only handle whole numbers.
 
G

Guest

You can set the filed's property to show however many
decimal places you want. When you select the number data
type, go to the general tab and Decimal places, and set to
what you need.
 
T

Tim Ferguson

You can set the filed's property to show however many
decimal places you want.

.... as long as you are using a floating point type of number and not an
integer....


Tim F
 
B

Bas Cost Budde

Tim said:
... as long as you are using a floating point type of number and not an
integer....

.... you can still *show* an enormous amount of decimal places. All zero.
Or, use some scaling trick. Seriously, in my checkbook application I
store all money amounts as integers. (Well, Longs, I am quite rich.) For
correct display I must divide by a humble 100.

It would even be possible to store the numbers as string, and perform
math with special objects. I've done that on analysis occasions. It is
*not* very fast.
 
T

Tim Ferguson

Or, use some scaling trick. Seriously, in my checkbook application I
store all money amounts as integers. (Well, Longs, I am quite rich.) For
correct display I must divide by a humble 100.

I'm disappointed: I assumed you would need at least 64-bits... :)

Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top