This is driving me nuts!!

R

RobertM

I'm trying to paste data into a table. The values are #'s such as 108.577645.
When I paste it over it comes out 108.577640. I've got the table set up to
hold six decimal places, but it still rounds off. Any suggestions.
 
M

Marshall Barton

RobertM said:
I'm trying to paste data into a table. The values are #'s such as 108.577645.
When I paste it over it comes out 108.577640. I've got the table set up to
hold six decimal places, but it still rounds off. Any suggestions.


It sounds like the field size is Single, which is rather
limited. You probably need to change it to Double.
 
D

Dennis

I have just tried it and it pastes OK. My number was set to Double with 6
decimal places. What number type is yours ?
 
P

peregenem

Marshall said:
It sounds like the field size is Single, which is rather
limited. You probably need to change it to Double.

It sound like the data is DECMIAL(n, 6) to me e.g.

SELECT TYPENAME(108.577645)

returns 'Decimal'.

Exmaple:

ALTER TABLE MyTable ADD price_euros DECIMAL(15, 6)
 

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