Converting Single To String - Weird!

  • Thread starter Thread starter hunt n peck
  • Start date Start date
H

hunt n peck

Could anyone please shed a little light on how VB converts from Single to
string?

This is what it gives:

SINGLE STRING
4583.3335 "4583.333"
2500.00 "2500"
8750.001 8750.001
18333.332 18333.33


It is screwing up my SQL queries because it seems to randomly choose to
round and change my numbers. Any advice?

Paul
 
Or try the more robust Decimal data type if your process can stomach the
overhead.

--
Justin Weinberg

Designing a PrintDocument or creating .NET graphics?
Save time with GDI+ Architect.
For more information, visit http://www.mrgsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top