hi guys i have designed software to read data from scales everything so far is so good except (yes theres always an except) part of my data arrives as 899 which is supposed to be 8.99 how can i converty this data to show 8.99 thankyou
stephen
stephen lowry
0
Newbie Poster
Recommended Answers
Jump to PostIf it is always .xx then divide by 100.
Dim num As Decimal = 899 Dim s As String = CStr(num) If s.IndexOf(".") < 0 Then TextBox1.Text = (num / 100D).ToString End If
As shown 8.99 would be put in the text box.
But if num = …
All 3 Replies
waynespangler
63
Posting Pro in Training
stephen lowry
0
Newbie Poster
stephen lowry
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.