March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm trying a simple experiment. I want to copy data from Tables in Lake house to csv Files in the same Lake house.
However, I found that the value of decimal data in Table is changed when it was written into File.
For example, if I have value 0.045 in Table, it will be 0.044999999999999998 in File instead. I just want to write 0.045.
The problem only happens on 3 decimal place values. I have tried to change the file type but it has not helped.
I have attached the example. Please feedback me how to correct this.
Thank you,
Nutpapon Lim
Solved! Go to Solution.
Looks like a (double) floating point to string conversion issue. I get the same when I use a Copy Data activity to output some decimals. Might well be worth raising as a support ticket in Fabric. As a work around, use the decimal data type instead.
If when you have your decimal data stored in the table as the decimal type, you get the following.
Floats are marginally worse;
Another alternative would be to do the conversion in a Notebook.
If you found this answer helpful, please marks as a Solution to help others find it.
Looks like a (double) floating point to string conversion issue. I get the same when I use a Copy Data activity to output some decimals. Might well be worth raising as a support ticket in Fabric. As a work around, use the decimal data type instead.
If when you have your decimal data stored in the table as the decimal type, you get the following.
Floats are marginally worse;
Another alternative would be to do the conversion in a Notebook.
If you found this answer helpful, please marks as a Solution to help others find it.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
7 | |
4 | |
2 | |
2 | |
2 |
User | Count |
---|---|
15 | |
10 | |
7 | |
5 | |
4 |