473,382 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Converting Single To String - Weird!

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
Nov 20 '05 #1
2 1212
FM

Try 'Format' insteand
saludos
Francisco

"hunt n peck" <x> wrote in message
news:ur**************@TK2MSFTNGP11.phx.gbl...
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

Nov 20 '05 #2
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

"FM" <f.******@verizon.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

Try 'Format' insteand
saludos
Francisco

"hunt n peck" <x> wrote in message
news:ur**************@TK2MSFTNGP11.phx.gbl...
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


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: hunt n peck | last post by:
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"...
4
by: joshua barrett via DotNetMonster.com | last post by:
hey guys im new to programming in general, i was doing fine till i started to work with option strict on, now i can;lt figure out hwo to get a single to convert to a string. i thought the .parse...
3
by: psbasha | last post by:
Hi , When ever we read any data from file ,we read as a single line string ,and we convert the respective field data available in that string based on the data type ( say int,float ). ...
10
by: Hank Stalica | last post by:
I'm having this weird problem where my code does the following conversion from string to float: 27000000.0 -27000000.00 2973999.99 -29740000.00 2989999.13 -2989999.25 The number on the left...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.