Use decimal(15,7) or numeric(15,7).
How to solve issue of IE data on float numbers and on same time save data as it is without change ?
I work on sql server 2017 i face issue when save data on float column data type
it saved as IE-07 AND ie-05 so what this and how to handle it please
how to save data on float numbers as it is
if there are any way to save data on correct way on another data type please tell me
my sample data
create table #numbersfloat
(
Numbers float
)
insert into #numbersfloat(Numbers)
values
(0.0000001),
(0.00001),
(0.0000001),
(0.00001),
(0.0000001),
(0.00001),
(0.0000001),
(0.00001),
(10000000),
(8),
(1),
(10000000),
(14),
(10000000),
(1005)
Developer technologies | Transact-SQL
SQL Server | Other
-
Jingyang Li 5,901 Reputation points Volunteer Moderator
2022-06-05T03:04:47.47+00:00
1 additional answer
Sort by: Most helpful
-
Erland Sommarskog 128.9K Reputation points MVP Volunteer Moderator2022-06-05T12:05:22.89+00:00 You are confusing the string representation with the presentation of the number in SSMS. A float value is always stored with a 53-bit base umber and an 11-bit exponent of 2. When presenting the data as string SSMS wil use scientific notation in most cases, but numbers around 1 are presented without exponent.