Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1447

Read back Double value with no loss of digits after the decimal place (no replies)

$
0
0
Hi there,

I have an issue reading back a Double value from a MySQL database via the C# connector (v8.0.16).

When using MySQL Workbench (8.0.16) the value is read back correctly with no loss of digits after the decimal place - 0.00000009690000000000001

When read back using the C# connector, I cannot get the exact same value via MySqlDataReader:

reader.GetDouble - 9.6900000000000014E-08
reader.GetDecimal - 0.0000000969

How can I get the exact same value as displayed by MySql Workbench?

Regards,
Andrew

Viewing all articles
Browse latest Browse all 1447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>