guest2013-1
guest
- Joined
- Aug 22, 2003
- Messages
- 19,800
I have the following
If you execute it you get:
WTF on the <row>
Why is it doing that? How can I correct it? I need to use float values in my select statements that will go into XML format like that. But I can't afford the data being different when you output it as XML...
The money type field works perfectly, but I don't want to "money" all my floats.... just not right...
Code:
declare @perc float
set @perc = 75
select @perc
select @perc FOR XML RAW, TYPE, ELEMENTS
If you execute it you get:
Code:
75
<row>7.500000000000000e+001</row>
WTF on the <row>
Why is it doing that? How can I correct it? I need to use float values in my select statements that will go into XML format like that. But I can't afford the data being different when you output it as XML...
The money type field works perfectly, but I don't want to "money" all my floats.... just not right...