Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Money Field Problem.

Author  Topic 

khufiamalik
Posting Yak Master

120 Posts

Posted - 2008-09-15 : 01:16:05
Hello All,
I have a Money Field in my table and filling it through a SP.
I have been inserting 10000 in that field and when it is inserted , it looks like 9999.9986

Can Some one help me that what could be the reason of this conversion.
and is there any solution to this?


Thanks in advance.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-15 : 01:18:28
I dont thnk its problem with your field. Are you sure you're not doing any manipulations before insertion of the value?
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-09-15 : 01:19:01
can you show us your insert statement ?


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-09-15 : 03:43:17
quote:
Originally posted by khufiamalik

Hello All,
I have a Money Field in my table and filling it through a SP.
I have been inserting 10000 in that field and when it is inserted , it looks like 9999.9986

Can Some one help me that what could be the reason of this conversion.
and is there any solution to this?


Thanks in advance.


declare @m money
set @m=10000
select @m


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -